summaryrefslogtreecommitdiff
path: root/xmllint.c
diff options
context:
space:
mode:
authorNick Wellnhofer <wellnhofer@aevum.de>2022-02-28 22:42:10 +0100
committerNick Wellnhofer <wellnhofer@aevum.de>2022-02-28 22:58:35 +0100
commit2489c1d024906d0f72bbcf709aeb53a24602c219 (patch)
tree922084fc7995dbb0d5d36482d921ebc97decede4 /xmllint.c
parentea6e8f998dc1a4d465fb8d44c4fad93940ca8280 (diff)
downloadlibxml2-2489c1d024906d0f72bbcf709aeb53a24602c219.tar.gz
Remove useless __CYGWIN__ checks
From what I can tell, some really early Cygwin versions from around 1998-2000 used to erroneously define _WIN32. This was eventually fixed, but these days, the `defined(_WIN32) && !defined(__CYGWIN__)` idiom is unnecessary. Now, we only check for __CYGWIN__ in xmlexports.h when deciding whether to use __declspec.
Diffstat (limited to 'xmllint.c')
-rw-r--r--xmllint.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/xmllint.c b/xmllint.c
index b314189f..ef25c052 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -2202,7 +2202,7 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
if ((filename[0] == '-') && (filename[1] == 0)) {
f = stdin;
} else {
-#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
+#if defined(_WIN32) || defined (__DJGPP__)
f = fopen(filename, "rb");
#elif defined(__OS400__)
f = fopen(filename, "rb");
@@ -2278,7 +2278,7 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
if ((filename[0] == '-') && (filename[1] == 0)) {
f = stdin;
} else {
-#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
+#if defined(_WIN32) || defined (__DJGPP__)
f = fopen(filename, "rb");
#elif defined(__OS400__)
f = fopen(filename, "rb");
@@ -2327,7 +2327,7 @@ static void parseAndPrintFile(char *filename, xmlParserCtxtPtr rectxt) {
} else {
FILE *f;
-#if defined(_WIN32) || defined (__DJGPP__) && !defined (__CYGWIN__)
+#if defined(_WIN32) || defined (__DJGPP__)
f = fopen(filename, "rb");
#elif defined(__OS400__)
f = fopen(filename, "rb");