2
0
David Rose 22 жил өмнө
parent
commit
5b2d78e570

+ 3 - 0
dtool/Config.Irix.pp

@@ -101,6 +101,9 @@
 // Do we have <alloca.h>?
 #define HAVE_ALLOCA_H 1
 
+// Do we have <locale.h>?
+#define HAVE_LOCALE_H 1
+
 // Do we have <minmax.h>?
 #define HAVE_MINMAX_H
 

+ 3 - 0
dtool/Config.Linux.pp

@@ -104,6 +104,9 @@
 // Do we have <alloca.h>?
 #define HAVE_ALLOCA_H 1
 
+// Do we have <locale.h>?
+#define HAVE_LOCALE_H 1
+
 // Do we have <minmax.h>?
 #define HAVE_MINMAX_H
 

+ 3 - 0
dtool/Config.Win32.pp

@@ -104,6 +104,9 @@
 // Do we have <alloca.h>?
 #define HAVE_ALLOCA_H
 
+// Do we have <locale.h>?
+#define HAVE_LOCALE_H
+
 // Do we have <minmax.h>?
 #define HAVE_MINMAX_H 1
 

+ 3 - 0
dtool/LocalSetup.pp

@@ -223,6 +223,9 @@ $[cdefine HAVE_MALLOC_H]
 /* Define if you have the <alloca.h> header file.  */
 $[cdefine HAVE_ALLOCA_H]
 
+/* Define if you have the <locale.h> header file.  */
+$[cdefine HAVE_LOCALE_H]
+
 /* Define if you have the <minmax.h> header file.  */
 $[cdefine HAVE_MINMAX_H]
 

+ 4 - 0
dtool/src/dtoolbase/dtoolbase.h

@@ -108,6 +108,10 @@
 #include <io.h>
 #endif
 
+#ifdef HAVE_LOCALE_H
+#include <locale.h>
+#endif
+
 #ifdef HAVE_MINMAX_H
 #include <minmax.h>
 #endif