diff options
author | Spp <spp@jorge.gr> | 2012-10-02 15:06:19 +0200 |
---|---|---|
committer | Spp <spp@jorge.gr> | 2012-10-02 15:06:19 +0200 |
commit | 7831ecdb182b62d84d0c3c31868a29263d13752e (patch) | |
tree | 98385154123a03aee4a26ff6b3498ecbe62390e3 /src/server/shared/CompilerDefs.h | |
parent | 380db44583df7abdafb2dfa18d89017dae88d39b (diff) |
Core: "Initial support for C++11 compilers"
Diffstat (limited to 'src/server/shared/CompilerDefs.h')
-rwxr-xr-x | src/server/shared/CompilerDefs.h | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/src/server/shared/CompilerDefs.h b/src/server/shared/CompilerDefs.h index f7e3d0b4979..b8be66d928f 100755 --- a/src/server/shared/CompilerDefs.h +++ b/src/server/shared/CompilerDefs.h @@ -50,12 +50,20 @@ # define COMPILER COMPILER_INTEL #elif defined( __GNUC__ ) # define COMPILER COMPILER_GNU +# define GCC_VERSION (__GNUC__ * 10000 + __GNUC_MINOR__ * 100 + __GNUC_PATCHLEVEL__) #else -# pragma error "FATAL ERROR: Unknown compiler." +# error "FATAL ERROR: Unknown compiler." #endif #if COMPILER == COMPILER_MICROSOFT # pragma warning( disable : 4267 ) // conversion from 'size_t' to 'int', possible loss of data # pragma warning( disable : 4786 ) // identifier was truncated to '255' characters in the debug information #endif + +#if defined(__cplusplus) && __cplusplus == 201103L +# define COMPILER_HAS_CPP11_SUPPORT 1 +#else +# define COMPILER_HAS_CPP11_SUPPORT 0 +#endif + #endif |