Resolve macro HAVE_EXPAT_CONFIG_H

This commit is contained in:
Sebastian Pipping 2021-04-21 23:35:17 +02:00
parent 10d3429621
commit 8d1bd6ff2c
10 changed files with 15 additions and 40 deletions

View File

@ -237,7 +237,6 @@ macro(expat_install)
endmacro() endmacro()
configure_file(expat_config.h.cmake "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h") 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}) expat_install(FILES "${CMAKE_CURRENT_BINARY_DIR}/expat_config.h" DESTINATION ${CMAKE_INSTALL_INCLUDEDIR})

View File

@ -52,7 +52,6 @@ LIBCURRENT=8 # sync
LIBREVISION=0 # with LIBREVISION=0 # with
LIBAGE=7 # CMakeLists.txt! LIBAGE=7 # CMakeLists.txt!
AX_APPEND_FLAG([-DHAVE_EXPAT_CONFIG_H], [AM_CPPFLAGS])
AC_CONFIG_HEADERS([expat_config.h]) AC_CONFIG_HEADERS([expat_config.h])
AM_PROG_AR AM_PROG_AR

View File

@ -40,17 +40,4 @@
#include <memory.h> #include <memory.h>
#include <string.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
/* we will assume all Windows platforms are little endian */
# define BYTEORDER 1234
#endif /* !defined(HAVE_EXPAT_CONFIG_H) */
#endif /* ndef WINCONFIG_H */ #endif /* ndef WINCONFIG_H */

View File

@ -63,9 +63,9 @@
#ifdef _WIN32 #ifdef _WIN32
# include "winconfig.h" # include "winconfig.h"
#elif defined(HAVE_EXPAT_CONFIG_H) #endif
#include <expat_config.h> #include <expat_config.h>
#endif /* ndef _WIN32 */
#include "ascii.h" #include "ascii.h"
#include "expat.h" #include "expat.h"

View File

@ -34,11 +34,9 @@
#ifdef _WIN32 #ifdef _WIN32
# include "winconfig.h" # include "winconfig.h"
#else
# ifdef HAVE_EXPAT_CONFIG_H
# include <expat_config.h>
#endif #endif
#endif /* ndef _WIN32 */
#include <expat_config.h>
#include "expat_external.h" #include "expat_external.h"
#include "internal.h" #include "internal.h"

View File

@ -36,11 +36,9 @@
#ifdef _WIN32 #ifdef _WIN32
# include "winconfig.h" # include "winconfig.h"
#else
# ifdef HAVE_EXPAT_CONFIG_H
# include <expat_config.h>
#endif #endif
#endif /* ndef _WIN32 */
#include <expat_config.h>
#include "expat_external.h" #include "expat_external.h"
#include "internal.h" #include "internal.h"

View File

@ -30,9 +30,7 @@
USE OR OTHER DEALINGS IN THE SOFTWARE. USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_EXPAT_CONFIG_H
#include <expat_config.h> #include <expat_config.h>
#endif
#include "minicheck.h" #include "minicheck.h"
#include <assert.h> #include <assert.h>

View File

@ -34,9 +34,7 @@
# undef NDEBUG /* because test suite relies on assert(...) at the moment */ # undef NDEBUG /* because test suite relies on assert(...) at the moment */
#endif #endif
#ifdef HAVE_EXPAT_CONFIG_H
#include <expat_config.h> #include <expat_config.h>
#endif
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -30,9 +30,7 @@
USE OR OTHER DEALINGS IN THE SOFTWARE. USE OR OTHER DEALINGS IN THE SOFTWARE.
*/ */
#ifdef HAVE_EXPAT_CONFIG_H
#include "expat_config.h" #include "expat_config.h"
#endif
#include <assert.h> #include <assert.h>
#include <stdlib.h> #include <stdlib.h>

View File

@ -38,9 +38,9 @@
#ifdef _WIN32 #ifdef _WIN32
# include "winconfig.h" # include "winconfig.h"
#elif defined(HAVE_EXPAT_CONFIG_H) #endif
#include <expat_config.h> #include <expat_config.h>
#endif /* ndef _WIN32 */
#include "expat.h" #include "expat.h"
#include "internal.h" /* for UNUSED_P only */ #include "internal.h" /* for UNUSED_P only */