Browse Source

add HAVE_LOCALE_H

David Rose 22 years ago
parent
commit
5b2d78e570
5 changed files with 16 additions and 0 deletions
  1. 3 0
      dtool/Config.Irix.pp
  2. 3 0
      dtool/Config.Linux.pp
  3. 3 0
      dtool/Config.Win32.pp
  4. 3 0
      dtool/LocalSetup.pp
  5. 4 0
      dtool/src/dtoolbase/dtoolbase.h

+ 3 - 0
dtool/Config.Irix.pp

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

+ 3 - 0
dtool/Config.Linux.pp

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

+ 3 - 0
dtool/Config.Win32.pp

@@ -104,6 +104,9 @@
 // Do we have <alloca.h>?
 // Do we have <alloca.h>?
 #define HAVE_ALLOCA_H
 #define HAVE_ALLOCA_H
 
 
+// Do we have <locale.h>?
+#define HAVE_LOCALE_H
+
 // Do we have <minmax.h>?
 // Do we have <minmax.h>?
 #define HAVE_MINMAX_H 1
 #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.  */
 /* Define if you have the <alloca.h> header file.  */
 $[cdefine HAVE_ALLOCA_H]
 $[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.  */
 /* Define if you have the <minmax.h> header file.  */
 $[cdefine HAVE_MINMAX_H]
 $[cdefine HAVE_MINMAX_H]
 
 

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

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