summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkwaclaw <kwaclaw>2006-08-05 22:43:57 +0000
committerkwaclaw <kwaclaw>2006-08-05 22:43:57 +0000
commitf43f6a8d0b91b14701ffa41ca2e9976c757266e4 (patch)
treebcd048d415ca656223038d5e1a77775f6daaf9f6
parent661e834a8ae7a58ce003e49af730151484ab2fee (diff)
downloadlibexpat-f43f6a8d0b91b14701ffa41ca2e9976c757266e4.tar.gz
The Watcom compiler defines __LINUX__ and not __linux__ for cross compilation.
-rwxr-xr-xxmlwf/readfilemap.c2
-rwxr-xr-xxmlwf/xmlfile.c4
2 files changed, 2 insertions, 4 deletions
diff --git a/xmlwf/readfilemap.c b/xmlwf/readfilemap.c
index 170031e..088dda5 100755
--- a/xmlwf/readfilemap.c
+++ b/xmlwf/readfilemap.c
@@ -9,7 +9,7 @@
#include <stdio.h>
#ifdef __WATCOMC__
-#ifndef __linux__
+#ifndef __LINUX__
#include <io.h>
#else
#include <unistd.h>
diff --git a/xmlwf/xmlfile.c b/xmlwf/xmlfile.c
index 5429491..6c75446 100755
--- a/xmlwf/xmlfile.c
+++ b/xmlwf/xmlfile.c
@@ -25,11 +25,9 @@
#include "xmltchar.h"
#include "filemap.h"
-#if (defined(_MSC_VER) || defined(__WATCOMC__))
-#ifndef __linux__
+#if (defined(_MSC_VER) || (defined(__WATCOMC__) && !defined(__LINUX__)))
#include <io.h>
#endif
-#endif
#ifdef AMIGA_SHARED_LIB
#include <proto/expat.h>