projects
/
platform
/
upstream
/
xz.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2dbdc5b
)
Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows.
author
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 31 Jan 2009 08:13:09 +0000
(10:13 +0200)
committer
Lasse Collin
<lasse.collin@tukaani.org>
Sat, 31 Jan 2009 08:13:09 +0000
(10:13 +0200)
src/xzdec/xzdec.c
patch
|
blob
|
history
diff --git
a/src/xzdec/xzdec.c
b/src/xzdec/xzdec.c
index
a8d0585
..
d6f4252
100644
(file)
--- 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