X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=simgear%2Fcompiler.h;h=2686ea1ff0f3c0507ee107963c7a51a09f912341;hb=01ace109bab7a458abd9c05717dd49ec1f0dfdf3;hp=372f571d9d7dd1fa5e0fb4a15d87bf2d2fef8cee;hpb=fe628e44e11cc32f8cea4102a9ee358fb599df37;p=simgear.git diff --git a/simgear/compiler.h b/simgear/compiler.h index 372f571d..2686ea1f 100644 --- a/simgear/compiler.h +++ b/simgear/compiler.h @@ -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. //