aboutsummaryrefslogtreecommitdiff
path: root/src/xzdec/xzdec.c
diff options
context:
space:
mode:
authorLasse Collin <lasse.collin@tukaani.org>2009-01-31 10:13:09 +0200
committerLasse Collin <lasse.collin@tukaani.org>2009-01-31 10:13:09 +0200
commitd9993fcb4dfc1f93abaf31ae23b3ef1f3123892b (patch)
tree4211526b3859f15cc40593afc932fc76f4022a68 /src/xzdec/xzdec.c
parentFix two lines in lzma.h on which the # wasn't at the (diff)
downloadxz-d9993fcb4dfc1f93abaf31ae23b3ef1f3123892b.tar.xz
Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows.
Diffstat (limited to '')
-rw-r--r--src/xzdec/xzdec.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/xzdec/xzdec.c b/src/xzdec/xzdec.c
index a8d05859..d6f4252f 100644
--- a/src/xzdec/xzdec.c
+++ b/src/xzdec/xzdec.c
@@ -23,7 +23,7 @@
#include <stdio.h>
#include <unistd.h>
-#ifdef WIN32
+#ifdef _WIN32
# include <fcntl.h>
#endif
@@ -407,7 +407,7 @@ main(int argc, char **argv)
lzma_stream strm = LZMA_STREAM_INIT;
// Some systems require setting stdin and stdout to binary mode.
-#ifdef WIN32
+#ifdef _WIN32
setmode(fileno(stdin), O_BINARY);
setmode(fileno(stdout), O_BINARY);
#endif