Switch to using C++14
This commit is contained in:
parent
2463626c96
commit
064108c9c4
7 changed files with 12 additions and 19 deletions
|
@ -40,7 +40,7 @@
|
|||
|
||||
#if !defined(_MSC_VER)
|
||||
|
||||
/* Aside of MSVC, every C++11-capable compiler provides __builtin_bswap*
|
||||
/* Aside of MSVC, every C++14-capable compiler provides __builtin_bswap*
|
||||
* as compiler intrinsics or builtin functions.
|
||||
*/
|
||||
|
||||
|
|
|
@ -29,7 +29,7 @@
|
|||
|
||||
// The __attribute__ syntax is supported by GCC, Clang, and IBM compilers.
|
||||
//
|
||||
// TODO: C++11 introduces standard syntax for implementation-defined attributes,
|
||||
// TODO: C++11 introduced standard syntax for implementation-defined attributes,
|
||||
// it should allow for removal of C_HAS_ATTRIBUTE from the buildsystem.
|
||||
// However, the vast majority of GCC_ATTRIBUTEs in DOSBox code need
|
||||
// to be reviewed, as many of them seem to be incorrectly/unnecessarily
|
||||
|
|
|
@ -94,7 +94,7 @@ void GFX_ShowMsg(char const* format,...) GCC_ATTRIBUTE(__format__(__printf__, 1,
|
|||
// be redirected into internal DOSBox debugger for DOS programs (C_DEBUG feature).
|
||||
#define DEBUG_LOG_MSG(...)
|
||||
#else
|
||||
// There's no portable way to expand variadic macro using C99/C++11 (or older)
|
||||
// There's no portable way to expand variadic macro using C99/C++14 (or older)
|
||||
// alone. This language limitation got removed only with C++20 (through addition
|
||||
// of __VA_OPT__ macro).
|
||||
#ifdef _MSC_VER
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue