]> git.ipfire.org Git - thirdparty/zlib-ng.git/commitdiff
Fixed defined WIN32 in switchlevels should be _WIN32.
authorNathan Moinvaziri <nathan@solidstatenetworks.com>
Tue, 9 Jun 2020 01:56:25 +0000 (18:56 -0700)
committerHans Kristian Rosbach <hk-github@circlestorm.org>
Tue, 9 Jun 2020 06:20:09 +0000 (08:20 +0200)
test/switchlevels.c

index ce5bfe5fcc0ac465fab6e85cc261dce9b980b606..11635755e8bf10a2e23c3bfccc58c84df8653783 100644 (file)
@@ -13,7 +13,7 @@
 #include <stdlib.h>
 #include <string.h>
 
-#if defined(WIN32) || defined(__CYGWIN__)
+#if defined(_WIN32) || defined(__CYGWIN__)
 #  include <fcntl.h>
 #  include <io.h>
 #  define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)