diff options
Diffstat (limited to 'fpconv.c')
-rw-r--r-- | fpconv.c | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -35,6 +35,12 @@ | |||
35 | 35 | ||
36 | #include "fpconv.h" | 36 | #include "fpconv.h" |
37 | 37 | ||
38 | /* Workaround for MSVC */ | ||
39 | #ifdef _MSC_VER | ||
40 | #define inline __inline | ||
41 | #define snprintf sprintf_s | ||
42 | #endif | ||
43 | |||
38 | /* Lua CJSON assumes the locale is the same for all threads within a | 44 | /* Lua CJSON assumes the locale is the same for all threads within a |
39 | * process and doesn't change after initialisation. | 45 | * process and doesn't change after initialisation. |
40 | * | 46 | * |