diff --git a/expat/CMakeLists.txt b/expat/CMakeLists.txt index 1e89e286..951df0ed 100644 --- a/expat/CMakeLists.txt +++ b/expat/CMakeLists.txt @@ -237,7 +237,6 @@ macro(expat_install) endmacro() configure_file(expat_config.h.cmake "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h") -add_definitions(-DHAVE_EXPAT_CONFIG_H) expat_install(FILES "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR}) diff --git a/expat/configure.ac b/expat/configure.ac index 9a6858e7..80964be2 100644 --- a/expat/configure.ac +++ b/expat/configure.ac @@ -52,7 +52,6 @@ LIBCURRENT=8 # sync LIBREVISION=0 # with LIBAGE=7 # CMakeLists.txt! -AX_APPEND_FLAG([-DHAVE_EXPAT_CONFIG_H], [AM_CPPFLAGS]) AC_CONFIG_HEADERS([expat_config.h]) AM_PROG_AR diff --git a/expat/lib/winconfig.h b/expat/lib/winconfig.h index 562a4a82..e0b71ffb 100644 --- a/expat/lib/winconfig.h +++ b/expat/lib/winconfig.h @@ -40,17 +40,4 @@ #include #include -#if defined(HAVE_EXPAT_CONFIG_H) /* e.g. MinGW */ -# include -#else /* !defined(HAVE_EXPAT_CONFIG_H) */ - -# define XML_NS 1 -# define XML_DTD 1 -# define XML_CONTEXT_BYTES 1024 - -/* we will assume all Windows platforms are little endian */ -# define BYTEORDER 1234 - -#endif /* !defined(HAVE_EXPAT_CONFIG_H) */ - #endif /* ndef WINCONFIG_H */ diff --git a/expat/lib/xmlparse.c b/expat/lib/xmlparse.c index f598936d..978eae21 100644 --- a/expat/lib/xmlparse.c +++ b/expat/lib/xmlparse.c @@ -63,9 +63,9 @@ #ifdef _WIN32 # include "winconfig.h" -#elif defined(HAVE_EXPAT_CONFIG_H) -# include -#endif /* ndef _WIN32 */ +#endif + +#include #include "ascii.h" #include "expat.h" diff --git a/expat/lib/xmlrole.c b/expat/lib/xmlrole.c index 3b676a41..0f9b8d39 100644 --- a/expat/lib/xmlrole.c +++ b/expat/lib/xmlrole.c @@ -34,11 +34,9 @@ #ifdef _WIN32 # include "winconfig.h" -#else -# ifdef HAVE_EXPAT_CONFIG_H -# include -# endif -#endif /* ndef _WIN32 */ +#endif + +#include #include "expat_external.h" #include "internal.h" diff --git a/expat/lib/xmltok.c b/expat/lib/xmltok.c index 58dce909..d9474240 100644 --- a/expat/lib/xmltok.c +++ b/expat/lib/xmltok.c @@ -36,11 +36,9 @@ #ifdef _WIN32 # include "winconfig.h" -#else -# ifdef HAVE_EXPAT_CONFIG_H -# include -# endif -#endif /* ndef _WIN32 */ +#endif + +#include #include "expat_external.h" #include "internal.h" diff --git a/expat/tests/chardata.c b/expat/tests/chardata.c index 75a50166..99b3d8af 100644 --- a/expat/tests/chardata.c +++ b/expat/tests/chardata.c @@ -30,9 +30,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_EXPAT_CONFIG_H -# include -#endif +#include #include "minicheck.h" #include diff --git a/expat/tests/runtests.c b/expat/tests/runtests.c index 91ab4f21..90245607 100644 --- a/expat/tests/runtests.c +++ b/expat/tests/runtests.c @@ -34,9 +34,7 @@ # undef NDEBUG /* because test suite relies on assert(...) at the moment */ #endif -#ifdef HAVE_EXPAT_CONFIG_H -# include -#endif +#include #include #include diff --git a/expat/tests/structdata.c b/expat/tests/structdata.c index e81b7b18..4cdd35f3 100644 --- a/expat/tests/structdata.c +++ b/expat/tests/structdata.c @@ -30,9 +30,7 @@ USE OR OTHER DEALINGS IN THE SOFTWARE. */ -#ifdef HAVE_EXPAT_CONFIG_H -# include "expat_config.h" -#endif +#include "expat_config.h" #include #include diff --git a/expat/xmlwf/xmlfile.c b/expat/xmlwf/xmlfile.c index e3d22c57..26391e92 100644 --- a/expat/xmlwf/xmlfile.c +++ b/expat/xmlwf/xmlfile.c @@ -38,9 +38,9 @@ #ifdef _WIN32 # include "winconfig.h" -#elif defined(HAVE_EXPAT_CONFIG_H) -# include -#endif /* ndef _WIN32 */ +#endif + +#include #include "expat.h" #include "internal.h" /* for UNUSED_P only */