diff options
Diffstat (limited to '')
-rw-r--r-- | linden/indra/llcommon/llpreprocessor.h | 14 |
1 files changed, 11 insertions, 3 deletions
diff --git a/linden/indra/llcommon/llpreprocessor.h b/linden/indra/llcommon/llpreprocessor.h index 9db0108..495b9e8 100644 --- a/linden/indra/llcommon/llpreprocessor.h +++ b/linden/indra/llcommon/llpreprocessor.h | |||
@@ -5,6 +5,7 @@ | |||
5 | * | 5 | * |
6 | * Copyright (c) 2001-2007, Linden Research, Inc. | 6 | * Copyright (c) 2001-2007, Linden Research, Inc. |
7 | * | 7 | * |
8 | * Second Life Viewer Source Code | ||
8 | * The source code in this file ("Source Code") is provided by Linden Lab | 9 | * The source code in this file ("Source Code") is provided by Linden Lab |
9 | * to you under the terms of the GNU General Public License, version 2.0 | 10 | * to you under the terms of the GNU General Public License, version 2.0 |
10 | * ("GPL"), unless you have obtained a separate licensing agreement | 11 | * ("GPL"), unless you have obtained a separate licensing agreement |
@@ -41,6 +42,13 @@ | |||
41 | #define LL_BIG_ENDIAN 1 | 42 | #define LL_BIG_ENDIAN 1 |
42 | #endif | 43 | #endif |
43 | 44 | ||
45 | // Per-compiler switches | ||
46 | #ifdef __GNUC__ | ||
47 | #define LL_FORCE_INLINE inline __attribute__((always_inline)) | ||
48 | #else | ||
49 | #define LL_FORCE_INLINE __forceinline | ||
50 | #endif | ||
51 | |||
44 | // Per-OS feature switches. | 52 | // Per-OS feature switches. |
45 | 53 | ||
46 | #if LL_DARWIN | 54 | #if LL_DARWIN |
@@ -81,9 +89,9 @@ | |||
81 | #endif | 89 | #endif |
82 | 90 | ||
83 | // Deal with the differeneces on Windows | 91 | // Deal with the differeneces on Windows |
84 | #if defined(LL_WINDOWS) | 92 | #if LL_WINDOWS |
85 | #define snprintf _snprintf /*Flawfinder: ignore*/ | 93 | #define snprintf safe_snprintf /* Flawfinder: ignore */ |
86 | #endif // LL_WINDOWS | 94 | #endif // LL_WINDOWS |
87 | 95 | ||
88 | // Static linking with apr on windows needs to be declared. | 96 | // Static linking with apr on windows needs to be declared. |
89 | #ifdef LL_WINDOWS | 97 | #ifdef LL_WINDOWS |