diff options
author | Jacek Antonelli | 2008-08-15 23:45:01 -0500 |
---|---|---|
committer | Jacek Antonelli | 2008-08-15 23:45:01 -0500 |
commit | 28d8d4e7664bcd6c8369cc18832e42096af7cad2 (patch) | |
tree | 069020fe66339aff2ca4176370ff743b14713f2d /linden/indra/llcommon/llpreprocessor.h | |
parent | Second Life viewer sources 1.17.2.0 (diff) | |
download | meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.zip meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.gz meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.bz2 meta-impy-28d8d4e7664bcd6c8369cc18832e42096af7cad2.tar.xz |
Second Life viewer sources 1.17.3.0
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llpreprocessor.h | 22 |
1 files changed, 16 insertions, 6 deletions
diff --git a/linden/indra/llcommon/llpreprocessor.h b/linden/indra/llcommon/llpreprocessor.h index 495b9e8..76145c5 100644 --- a/linden/indra/llcommon/llpreprocessor.h +++ b/linden/indra/llcommon/llpreprocessor.h | |||
@@ -71,12 +71,22 @@ | |||
71 | #define MOZILLA_INTERNAL_API 1 | 71 | #define MOZILLA_INTERNAL_API 1 |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | // Deal with minor differences on Unixy OSes. | 74 | // Figure out differences between compilers |
75 | #if LL_DARWIN || LL_LINUX | 75 | #if defined(__GNUC__) |
76 | #define GCC_VERSION (__GNUC__ * 10000 \ | 76 | #define GCC_VERSION (__GNUC__ * 10000 \ |
77 | + __GNUC_MINOR__ * 100 \ | 77 | + __GNUC_MINOR__ * 100 \ |
78 | + __GNUC_PATCHLEVEL__) | 78 | + __GNUC_PATCHLEVEL__) |
79 | #ifndef LL_GNUC | ||
80 | #define LL_GNUC 1 | ||
81 | #endif | ||
82 | #elif defined(__MSVC_VER__) || defined(_MSC_VER) | ||
83 | #ifndef LL_MSVC | ||
84 | #define LL_MSVC 1 | ||
85 | #endif | ||
86 | #endif | ||
79 | 87 | ||
88 | // Deal with minor differences on Unixy OSes. | ||
89 | #if LL_DARWIN || LL_LINUX | ||
80 | // Different name, same functionality. | 90 | // Different name, same functionality. |
81 | #define stricmp strcasecmp | 91 | #define stricmp strcasecmp |
82 | #define strnicmp strncasecmp | 92 | #define strnicmp strncasecmp |
@@ -89,9 +99,9 @@ | |||
89 | #endif | 99 | #endif |
90 | 100 | ||
91 | // Deal with the differeneces on Windows | 101 | // Deal with the differeneces on Windows |
92 | #if LL_WINDOWS | 102 | #if LL_MSVC |
93 | #define snprintf safe_snprintf /* Flawfinder: ignore */ | 103 | #define snprintf safe_snprintf /* Flawfinder: ignore */ |
94 | #endif // LL_WINDOWS | 104 | #endif // LL_MSVC |
95 | 105 | ||
96 | // Static linking with apr on windows needs to be declared. | 106 | // Static linking with apr on windows needs to be declared. |
97 | #ifdef LL_WINDOWS | 107 | #ifdef LL_WINDOWS |
@@ -110,7 +120,7 @@ | |||
110 | 120 | ||
111 | 121 | ||
112 | // Deal with VC6 problems | 122 | // Deal with VC6 problems |
113 | #if defined(LL_WINDOWS) | 123 | #if LL_MSVC |
114 | #pragma warning( 3 : 4701 ) // "local variable used without being initialized" Treat this as level 3, not level 4. | 124 | #pragma warning( 3 : 4701 ) // "local variable used without being initialized" Treat this as level 3, not level 4. |
115 | #pragma warning( 3 : 4702 ) // "unreachable code" Treat this as level 3, not level 4. | 125 | #pragma warning( 3 : 4702 ) // "unreachable code" Treat this as level 3, not level 4. |
116 | #pragma warning( 3 : 4189 ) // "local variable initialized but not referenced" Treat this as level 3, not level 4. | 126 | #pragma warning( 3 : 4189 ) // "local variable initialized but not referenced" Treat this as level 3, not level 4. |
@@ -121,6 +131,6 @@ | |||
121 | #pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation. | 131 | #pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation. |
122 | #pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) | 132 | #pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) |
123 | #pragma warning( disable : 4996 ) // warning: deprecated | 133 | #pragma warning( disable : 4996 ) // warning: deprecated |
124 | #endif // LL_WINDOWS | 134 | #endif // LL_MSVC |
125 | 135 | ||
126 | #endif // not LL_LINDEN_PREPROCESSOR_H | 136 | #endif // not LL_LINDEN_PREPROCESSOR_H |