• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1diff --git a/lib/xmlparse.c b/lib/xmlparse.c
2index 8199488..8453289 100644
3--- a/lib/xmlparse.c
4+++ b/lib/xmlparse.c
5@@ -88,9 +88,9 @@
6
7 #ifdef _WIN32
8 #  include "winconfig.h"
9-#endif
10-
11-#include <expat_config.h>
12+#elif defined(HAVE_EXPAT_CONFIG_H)
13+#  include <expat_config.h>
14+#endif /* ndef _WIN32 */
15
16 #include "ascii.h"
17 #include "expat.h"
18diff --git a/lib/xmlrole.c b/lib/xmlrole.c
19index 08173b0..ddb22ef 100644
20--- a/lib/xmlrole.c
21+++ b/lib/xmlrole.c
22@@ -41,9 +41,11 @@
23
24 #ifdef _WIN32
25 #  include "winconfig.h"
26-#endif
27-
28-#include <expat_config.h>
29+#else
30+#  ifdef HAVE_EXPAT_CONFIG_H
31+#    include <expat_config.h>
32+#  endif
33+#endif /* ndef _WIN32 */
34
35 #include "expat_external.h"
36 #include "internal.h"
37diff --git a/lib/xmltok.c b/lib/xmltok.c
38index 8d77d60..53ec1d0 100644
39--- a/lib/xmltok.c
40+++ b/lib/xmltok.c
41@@ -48,9 +48,11 @@
42
43 #ifdef _WIN32
44 #  include "winconfig.h"
45-#endif
46-
47-#include <expat_config.h>
48+#else
49+#  ifdef HAVE_EXPAT_CONFIG_H
50+#    include <expat_config.h>
51+#  endif
52+#endif /* ndef _WIN32 */
53
54 #include "expat_external.h"
55 #include "internal.h"
56