aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/linden/indra/llcommon/llpreprocessor.h
diff options
context:
space:
mode:
Diffstat (limited to 'linden/indra/llcommon/llpreprocessor.h')
-rw-r--r--linden/indra/llcommon/llpreprocessor.h9
1 files changed, 8 insertions, 1 deletions
diff --git a/linden/indra/llcommon/llpreprocessor.h b/linden/indra/llcommon/llpreprocessor.h
index 8d38904..e99b103 100644
--- a/linden/indra/llcommon/llpreprocessor.h
+++ b/linden/indra/llcommon/llpreprocessor.h
@@ -79,9 +79,16 @@
79 79
80#endif 80#endif
81 81
82
82// Deal with the differeneces on Windows 83// Deal with the differeneces on Windows
83#if LL_MSVC 84#if LL_MSVC
84#define snprintf safe_snprintf /* Flawfinder: ignore */ 85namespace snprintf_hack
86{
87 int snprintf(char *str, size_t size, const char *format, ...);
88}
89
90// #define snprintf safe_snprintf /* Flawfinder: ignore */
91using snprintf_hack::snprintf;
85#endif // LL_MSVC 92#endif // LL_MSVC
86 93
87// Static linking with apr on windows needs to be declared. 94// Static linking with apr on windows needs to be declared.