diff options
author | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-31 10:13:09 +0200 |
---|---|---|
committer | Lasse Collin <lasse.collin@tukaani.org> | 2009-01-31 10:13:09 +0200 |
commit | d9993fcb4dfc1f93abaf31ae23b3ef1f3123892b (patch) | |
tree | 4211526b3859f15cc40593afc932fc76f4022a68 | |
parent | Fix two lines in lzma.h on which the # wasn't at the (diff) | |
download | xz-d9993fcb4dfc1f93abaf31ae23b3ef1f3123892b.tar.xz |
Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows.
-rw-r--r-- | src/xzdec/xzdec.c | 4 |
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 |