From d9993fcb4dfc1f93abaf31ae23b3ef1f3123892b Mon Sep 17 00:00:00 2001 From: Lasse Collin Date: Sat, 31 Jan 2009 10:13:09 +0200 Subject: [PATCH] Use _WIN32 instead of WIN32 in xzdec.c to test if compiling on Windows. --- src/xzdec/xzdec.c | 4 ++-- 1 file 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 #include -#ifdef WIN32 +#ifdef _WIN32 # include #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