]> git.mxchange.org Git - simgear.git/blobdiff - simgear/compiler.h
Add Update the World Magnetic Model to 2015.0
[simgear.git] / simgear / compiler.h
index e94c7ee40d2f25768f5587e12f9d0f73f39f8ad1..2686ea1ff0f3c0507ee107963c7a51a09f912341 100644 (file)
@@ -46,7 +46,7 @@
 #    warning GCC compilers prior to 3.4 are suspect  
 #  endif
 
-#  define GCC_VERSION (__GNUC__ * 10000 \
+#  define SG_GCC_VERSION (__GNUC__ * 10000 \
                      + __GNUC_MINOR__ * 100 \
                      + __GNUC_PATCHLEVEL__)
 #  define SG_COMPILER_STR "GNU C++ version " SG_STRINGIZE(__GNUC__) "." SG_STRINGIZE(__GNUC_MINOR__)
@@ -184,6 +184,12 @@ inline int (isnan)(double r) { return !(r <= 0 || r >= 0); }
 #  define SG_UNIX
 #endif
 
+#if defined( __GNUC__ )
+#  define DEPRECATED __attribute__ ((deprecated))
+#else
+#  define DEPRECATED
+#endif
+
 //
 // No user modifiable definitions beyond here.
 //