aboutsummaryrefslogtreecommitdiff
path: root/src/server/shared/CompilerDefs.h
diff options
context:
space:
mode:
authorSpp <spp@jorge.gr>2012-10-02 15:06:19 +0200
committerSpp <spp@jorge.gr>2012-10-02 15:06:19 +0200
commit7831ecdb182b62d84d0c3c31868a29263d13752e (patch)
tree98385154123a03aee4a26ff6b3498ecbe62390e3 /src/server/shared/CompilerDefs.h
parent380db44583df7abdafb2dfa18d89017dae88d39b (diff)
Core: "Initial support for C++11 compilers"
Diffstat (limited to 'src/server/shared/CompilerDefs.h')
-rwxr-xr-xsrc/server/shared/CompilerDefs.h10
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