summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.version3
-rw-r--r--lib/xmlparse.c8
-rw-r--r--lib/xmlrole.c4
-rw-r--r--lib/xmltok.c4
4 files changed, 11 insertions, 8 deletions
diff --git a/README.version b/README.version
index 8abf0fab..dab2257a 100644
--- a/README.version
+++ b/README.version
@@ -1,3 +1,6 @@
URL: https://sourceforge.net/projects/expat/files/expat/2.2.0/expat-2.2.0.tar.bz2/download
Version: 2.2.0
BugComponent: 24949
+
+Local Changes:
+ Reverted change to switch from COMPILED_FROM_DSP to WIN32. This was needed in order to get it to compile as winconfig.h is not available.
diff --git a/lib/xmlparse.c b/lib/xmlparse.c
index b308e67e..eac228b4 100644
--- a/lib/xmlparse.c
+++ b/lib/xmlparse.c
@@ -7,7 +7,7 @@
#include <assert.h>
#include <limits.h> /* UINT_MAX */
-#ifdef WIN32
+#ifdef COMPILED_FROM_DSP
#define getpid GetCurrentProcessId
#else
#include <sys/time.h> /* gettimeofday() */
@@ -17,7 +17,7 @@
#define XML_BUILDING_EXPAT 1
-#ifdef WIN32
+#ifdef COMPILED_FROM_DSP
#include "winconfig.h"
#elif defined(MACOS_CLASSIC)
#include "macconfig.h"
@@ -27,7 +27,7 @@
#include "watcomconfig.h"
#elif defined(HAVE_EXPAT_CONFIG_H)
#include <expat_config.h>
-#endif /* ndef WIN32 */
+#endif /* ndef COMPILED_FROM_DSP */
#include "ascii.h"
#include "expat.h"
@@ -700,7 +700,7 @@ static const XML_Char implicitContext[] = {
static unsigned long
gather_time_entropy(void)
{
-#ifdef WIN32
+#ifdef COMPILED_FROM_DSP
FILETIME ft;
GetSystemTimeAsFileTime(&ft); /* never fails */
return ft.dwHighDateTime ^ ft.dwLowDateTime;
diff --git a/lib/xmlrole.c b/lib/xmlrole.c
index fcd0dc69..8a68e20f 100644
--- a/lib/xmlrole.c
+++ b/lib/xmlrole.c
@@ -4,7 +4,7 @@
#include <stddef.h>
-#ifdef WIN32
+#ifdef COMPILED_FROM_DSP
#include "winconfig.h"
#elif defined(MACOS_CLASSIC)
#include "macconfig.h"
@@ -16,7 +16,7 @@
#ifdef HAVE_EXPAT_CONFIG_H
#include <expat_config.h>
#endif
-#endif /* ndef WIN32 */
+#endif /* ndef COMPILED_FROM_DSP */
#include "expat_external.h"
#include "internal.h"
diff --git a/lib/xmltok.c b/lib/xmltok.c
index a29d9e2f..daa35654 100644
--- a/lib/xmltok.c
+++ b/lib/xmltok.c
@@ -4,7 +4,7 @@
#include <stddef.h>
-#ifdef WIN32
+#ifdef COMPILED_FROM_DSP
#include "winconfig.h"
#elif defined(MACOS_CLASSIC)
#include "macconfig.h"
@@ -16,7 +16,7 @@
#ifdef HAVE_EXPAT_CONFIG_H
#include <expat_config.h>
#endif
-#endif /* ndef WIN32 */
+#endif /* ndef COMPILED_FROM_DSP */
#include "expat_external.h"
#include "internal.h"