Kaydet (Commit) d455410a authored tarafından Tor Lillqvist's avatar Tor Lillqvist

Look at GCC version, not whether MacOSX or not

üst a22a722d
...@@ -265,7 +265,11 @@ RSCINST GetFirstTupelEle( const RSCINST & rTop ) ...@@ -265,7 +265,11 @@ RSCINST GetFirstTupelEle( const RSCINST & rTop )
#pragma warning(disable:4129 4273 4701 4702) #pragma warning(disable:4129 4273 4701 4702)
#endif #endif
#if defined __GNUC__ #if defined __GNUC__
#ifndef MACOSX #define GCC_VERSION (__GNUC__ * 10000 \
+ __GNUC_MINOR__ * 100 \
+ __GNUC_PATCHLEVEL__)
/* Diagnostics pragma was introduced with gcc-4.2.1 */
#if GCC_VERSION >= 40201
#pragma GCC diagnostic ignored "-Wwrite-strings" #pragma GCC diagnostic ignored "-Wwrite-strings"
#endif #endif
#elif defined __SUNPRO_CC #elif defined __SUNPRO_CC
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment