summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-09-02 04:33:54 +0200
committerNick Wellnhofer <wellnhofer@aevum.de>2022-09-02 18:33:36 +0200
commit16ae1d8f7150758d48fb296aebd8e4d957aaba2c (patch)
tree5b5f2d0c23e15a64b6f23eed770fab86496f124e
parent0f77167f760d5aec437cd56f2369798f181b7656 (diff)
downloadlibxml2-16ae1d8f7150758d48fb296aebd8e4d957aaba2c.tar.gz
Don't define WIN32 macro
-rw-r--r--configure.ac1
-rw-r--r--win32/Makefile.bcb4
-rw-r--r--win32/Makefile.mingw2
3 files changed, 3 insertions, 4 deletions
diff --git a/configure.ac b/configure.ac
index 1c8adcd0..6f4c21f7 100644
--- a/configure.ac
+++ b/configure.ac
@@ -580,7 +580,6 @@ CYGWIN_EXTRA_PYTHON_LIBADD=
WIN32_EXTRA_PYTHON_LIBADD=
case "$host" in
*-*-mingw*)
- CPPFLAGS="$CPPFLAGS -DWIN32"
WIN32_EXTRA_LIBADD="-lws2_32"
WIN32_EXTRA_LDFLAGS="-no-undefined"
if test "${PYTHON}" != ""
diff --git a/win32/Makefile.bcb b/win32/Makefile.bcb
index c4b51259..1064b807 100644
--- a/win32/Makefile.bcb
+++ b/win32/Makefile.bcb
@@ -42,7 +42,7 @@ XML_INTDIR_A = int.a.bcb
UTILS_INTDIR = int.utils.bcb
# The preprocessor and its options.
-CPP = cpp32.exe -P- -DWIN32
+CPP = cpp32.exe -P-
CPPFLAGS = -I"$(XML_SRCDIR)\include" -DNOLIBTOOL
!if "$(WITH_THREADS)" != "no"
CPPFLAGS = $(CPPFLAGS) -D_REENTRANT -D__MT__
@@ -50,7 +50,7 @@ CPPFLAGS = $(CPPFLAGS) -D_REENTRANT -D__MT__
# The compiler and its options.
CC = bcc32.exe
-CFLAGS = -q -DWIN32 -D_NO_VCL -D_WINDOWS -D_MBCS -DEILSEQ=2 -DNOLIBTOOL -w-
+CFLAGS = -q -D_NO_VCL -D_WINDOWS -D_MBCS -DEILSEQ=2 -DNOLIBTOOL -w-
CFLAGS = $(CFLAGS) -I"$(XML_SRCDIR)" -I"$(XML_SRCDIR)\include" -I"$(INCPREFIX)" -I"$(INCLUDE)"
!if "$(WITH_THREADS)" != "no"
CFLAGS = $(CFLAGS) -D_REENTRANT -tWM
diff --git a/win32/Makefile.mingw b/win32/Makefile.mingw
index 13f2d96f..81f261bc 100644
--- a/win32/Makefile.mingw
+++ b/win32/Makefile.mingw
@@ -40,7 +40,7 @@ endif
# The compiler and its options.
CC = gcc.exe
-CFLAGS += -DWIN32 -D_WINDOWS -D_MBCS -DNOLIBTOOL
+CFLAGS += -D_WINDOWS -D_MBCS -DNOLIBTOOL
CFLAGS += -I$(XML_SRCDIR) -I$(XML_SRCDIR)/include -I$(INCPREFIX) $(INCLUDE)
ifneq ($(WITH_THREADS),no)
CFLAGS += -D_REENTRANT