diff options
Diffstat (limited to 'linden/indra/llcommon/llpreprocessor.h')
-rw-r--r-- | linden/indra/llcommon/llpreprocessor.h | 22 |
1 files changed, 6 insertions, 16 deletions
diff --git a/linden/indra/llcommon/llpreprocessor.h b/linden/indra/llcommon/llpreprocessor.h index 76145c5..495b9e8 100644 --- a/linden/indra/llcommon/llpreprocessor.h +++ b/linden/indra/llcommon/llpreprocessor.h | |||
@@ -71,22 +71,12 @@ | |||
71 | #define MOZILLA_INTERNAL_API 1 | 71 | #define MOZILLA_INTERNAL_API 1 |
72 | #endif | 72 | #endif |
73 | 73 | ||
74 | // Figure out differences between compilers | 74 | // Deal with minor differences on Unixy OSes. |
75 | #if defined(__GNUC__) | 75 | #if LL_DARWIN || LL_LINUX |
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 | ||
87 | 79 | ||
88 | // Deal with minor differences on Unixy OSes. | ||
89 | #if LL_DARWIN || LL_LINUX | ||
90 | // Different name, same functionality. | 80 | // Different name, same functionality. |
91 | #define stricmp strcasecmp | 81 | #define stricmp strcasecmp |
92 | #define strnicmp strncasecmp | 82 | #define strnicmp strncasecmp |
@@ -99,9 +89,9 @@ | |||
99 | #endif | 89 | #endif |
100 | 90 | ||
101 | // Deal with the differeneces on Windows | 91 | // Deal with the differeneces on Windows |
102 | #if LL_MSVC | 92 | #if LL_WINDOWS |
103 | #define snprintf safe_snprintf /* Flawfinder: ignore */ | 93 | #define snprintf safe_snprintf /* Flawfinder: ignore */ |
104 | #endif // LL_MSVC | 94 | #endif // LL_WINDOWS |
105 | 95 | ||
106 | // Static linking with apr on windows needs to be declared. | 96 | // Static linking with apr on windows needs to be declared. |
107 | #ifdef LL_WINDOWS | 97 | #ifdef LL_WINDOWS |
@@ -120,7 +110,7 @@ | |||
120 | 110 | ||
121 | 111 | ||
122 | // Deal with VC6 problems | 112 | // Deal with VC6 problems |
123 | #if LL_MSVC | 113 | #if defined(LL_WINDOWS) |
124 | #pragma warning( 3 : 4701 ) // "local variable used without being initialized" Treat this as level 3, not level 4. | 114 | #pragma warning( 3 : 4701 ) // "local variable used without being initialized" Treat this as level 3, not level 4. |
125 | #pragma warning( 3 : 4702 ) // "unreachable code" Treat this as level 3, not level 4. | 115 | #pragma warning( 3 : 4702 ) // "unreachable code" 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. | 116 | #pragma warning( 3 : 4189 ) // "local variable initialized but not referenced" Treat this as level 3, not level 4. |
@@ -131,6 +121,6 @@ | |||
131 | #pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation. | 121 | #pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation. |
132 | #pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) | 122 | #pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning) |
133 | #pragma warning( disable : 4996 ) // warning: deprecated | 123 | #pragma warning( disable : 4996 ) // warning: deprecated |
134 | #endif // LL_MSVC | 124 | #endif // LL_WINDOWS |
135 | 125 | ||
136 | #endif // not LL_LINDEN_PREPROCESSOR_H | 126 | #endif // not LL_LINDEN_PREPROCESSOR_H |