aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llpreprocessor.h
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--linden/indra/llcommon/llpreprocessor.h27
1 files changed, 21 insertions, 6 deletions
diff --git a/linden/indra/llcommon/llpreprocessor.h b/linden/indra/llcommon/llpreprocessor.h
index 495b9e8..f19d5a0 100644
--- a/linden/indra/llcommon/llpreprocessor.h
+++ b/linden/indra/llcommon/llpreprocessor.h
@@ -62,6 +62,11 @@
62 #ifndef LL_LIBXUL_ENABLED 62 #ifndef LL_LIBXUL_ENABLED
63 #define LL_LIBXUL_ENABLED 1 63 #define LL_LIBXUL_ENABLED 1
64 #endif // def LL_LIBXUL_ENABLED 64 #endif // def LL_LIBXUL_ENABLED
65#elif LL_SOLARIS
66 #define LL_QUICKTIME_ENABLED 0
67 #ifndef LL_LIBXUL_ENABLED
68 #define LL_LIBXUL_ENABLED 0
69 #endif // def LL_LIBXUL_ENABLED
65#endif 70#endif
66 71
67#if LL_LIBXUL_ENABLED && !defined(MOZILLA_INTERNAL_API) 72#if LL_LIBXUL_ENABLED && !defined(MOZILLA_INTERNAL_API)
@@ -71,12 +76,22 @@
71 #define MOZILLA_INTERNAL_API 1 76 #define MOZILLA_INTERNAL_API 1
72#endif 77#endif
73 78
74// Deal with minor differences on Unixy OSes. 79// Figure out differences between compilers
75#if LL_DARWIN || LL_LINUX 80#if defined(__GNUC__)
76 #define GCC_VERSION (__GNUC__ * 10000 \ 81 #define GCC_VERSION (__GNUC__ * 10000 \
77 + __GNUC_MINOR__ * 100 \ 82 + __GNUC_MINOR__ * 100 \
78 + __GNUC_PATCHLEVEL__) 83 + __GNUC_PATCHLEVEL__)
84 #ifndef LL_GNUC
85 #define LL_GNUC 1
86 #endif
87#elif defined(__MSVC_VER__) || defined(_MSC_VER)
88 #ifndef LL_MSVC
89 #define LL_MSVC 1
90 #endif
91#endif
79 92
93// Deal with minor differences on Unixy OSes.
94#if LL_DARWIN || LL_LINUX
80 // Different name, same functionality. 95 // Different name, same functionality.
81 #define stricmp strcasecmp 96 #define stricmp strcasecmp
82 #define strnicmp strncasecmp 97 #define strnicmp strncasecmp
@@ -89,9 +104,9 @@
89#endif 104#endif
90 105
91// Deal with the differeneces on Windows 106// Deal with the differeneces on Windows
92#if LL_WINDOWS 107#if LL_MSVC
93#define snprintf safe_snprintf /* Flawfinder: ignore */ 108#define snprintf safe_snprintf /* Flawfinder: ignore */
94#endif // LL_WINDOWS 109#endif // LL_MSVC
95 110
96// Static linking with apr on windows needs to be declared. 111// Static linking with apr on windows needs to be declared.
97#ifdef LL_WINDOWS 112#ifdef LL_WINDOWS
@@ -110,7 +125,7 @@
110 125
111 126
112// Deal with VC6 problems 127// Deal with VC6 problems
113#if defined(LL_WINDOWS) 128#if LL_MSVC
114#pragma warning( 3 : 4701 ) // "local variable used without being initialized" Treat this as level 3, not level 4. 129#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. 130#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. 131#pragma warning( 3 : 4189 ) // "local variable initialized but not referenced" Treat this as level 3, not level 4.
@@ -121,6 +136,6 @@
121#pragma warning( disable : 4503 ) // 'decorated name length exceeded, name was truncated'. Does not seem to affect compilation. 136#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) 137#pragma warning( disable : 4800 ) // 'BOOL' : forcing value to bool 'true' or 'false' (performance warning)
123#pragma warning( disable : 4996 ) // warning: deprecated 138#pragma warning( disable : 4996 ) // warning: deprecated
124#endif // LL_WINDOWS 139#endif // LL_MSVC
125 140
126#endif // not LL_LINDEN_PREPROCESSOR_H 141#endif // not LL_LINDEN_PREPROCESSOR_H