]> granicus.if.org Git - libexpat/commitdiff
MinGW: No longer ignore expat_config.h
authorSebastian Pipping <sebastian@pipping.org>
Fri, 16 Jun 2017 18:38:52 +0000 (20:38 +0200)
committerSebastian Pipping <sebastian@pipping.org>
Fri, 16 Jun 2017 18:38:52 +0000 (20:38 +0200)
Previously, "#define XML_CONTEXT_BYTES 1024" from winconfig.h
would render --disable-xml-context ineffective.

expat/lib/winconfig.h

index c1b791d62d0d0c94656f8ff2f912822217e0c904..9bf014d7fbabd63094f04f722d9ac46bf99385db 100644 (file)
 #include <memory.h>
 #include <string.h>
 
+
+#if defined(HAVE_EXPAT_CONFIG_H)  /* e.g. MinGW */
+# include <expat_config.h>
+#else  /* !defined(HAVE_EXPAT_CONFIG_H) */
+
+
 #define XML_NS 1
 #define XML_DTD 1
 #define XML_CONTEXT_BYTES 1024
@@ -27,4 +33,8 @@
 /* Windows has memmove() available. */
 #define HAVE_MEMMOVE
 
+
+#endif /* !defined(HAVE_EXPAT_CONFIG_H) */
+
+
 #endif /* ndef WINCONFIG_H */