Explorar o código

ENABLE_LOCALES: Actually disable the include as well

Max Bruckner %!s(int64=7) %!d(string=hai) anos
pai
achega
96c33e5abb
Modificáronse 1 ficheiros con 3 adicións e 0 borrados
  1. 3 0
      cJSON.c

+ 3 - 0
cJSON.c

@@ -44,7 +44,10 @@
 #include <float.h>
 #include <float.h>
 #include <limits.h>
 #include <limits.h>
 #include <ctype.h>
 #include <ctype.h>
+
+#ifdef ENABLE_LOCALES
 #include <locale.h>
 #include <locale.h>
+#endif
 
 
 #if defined(_MSC_VER)
 #if defined(_MSC_VER)
 #pragma warning (pop)
 #pragma warning (pop)