Fix a clash between the type DATADIR on Windows and the macro DATADIR.
authorBruno Haible <bruno@clisp.org>
Sun, 26 Oct 2008 13:29:43 +0000 (14:29 +0100)
committerBruno Haible <bruno@clisp.org>
Sun, 26 Oct 2008 13:29:43 +0000 (14:29 +0100)
ChangeLog
lib/javaversion.c
modules/configmake

index f4c475c..67c5f82 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,13 @@
 2008-10-26  Bruno Haible  <bruno@clisp.org>
 
+       Fix a clash between the type DATADIR on Windows and the macro DATADIR.
+       * modules/configmake (Include): Add a note that the include must come
+       after all system headers.
+       * lib/javaversion.c: Include configmake.h after all other includes.
+       Reported by Simon Josefsson.
+
+2008-10-26  Bruno Haible  <bruno@clisp.org>
+
        * m4/stdlib_h.m4 (gl_STDLIB_H_DEFAULTS): Set default of
        HAVE_STRUCT_RANDOM_DATA to 1.
        (gl_STDLIB_H): Simplify.
index 003919e..94a353a 100644 (file)
@@ -30,9 +30,6 @@
 # define relocate(pathname) (pathname)
 #endif
 
-/* Get PKGDATADIR.  */
-#include "configmake.h"
-
 #include "javaexec.h"
 #include "pipe.h"
 #include "wait-process.h"
@@ -41,6 +38,9 @@
 
 #define _(str) gettext (str)
 
+/* Get PKGDATADIR.  */
+#include "configmake.h"
+
 
 struct locals
 {
index a1169a9..5160128 100644 (file)
@@ -61,7 +61,8 @@ BUILT_SOURCES += configmake.h
 CLEANFILES += configmake.h configmake.h-t
 
 Include:
-"configmake.h"
+/* Include only after all system include files.  */
+#include "configmake.h"
 
 License:
 LGPLv2+