]> git.mxchange.org Git - simgear.git/blobdiff - simgear/compiler.h
HTTP: Rename urlretrieve/urlload to save/load.
[simgear.git] / simgear / compiler.h
index 372f571d9d7dd1fa5e0fb4a15d87bf2d2fef8cee..2686ea1ff0f3c0507ee107963c7a51a09f912341 100644 (file)
@@ -46,6 +46,9 @@
 #    warning GCC compilers prior to 3.4 are suspect  
 #  endif
 
+#  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__)
 #endif // __GNUC__
 
@@ -181,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.
 //