summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--CMakeLists.txt1
-rw-r--r--perform/zip_perf.c8
2 files changed, 1 insertions, 8 deletions
diff --git a/CMakeLists.txt b/CMakeLists.txt
index 2422979..0dfe687 100644
--- a/CMakeLists.txt
+++ b/CMakeLists.txt
@@ -300,6 +300,7 @@ IF (WIN32)
IF (NOT CYGWIN)
ADD_DEFINITIONS (-DBIND_TO_CURRENT_VCLIBS_VERSION=1)
ADD_DEFINITIONS (-D_CRT_SECURE_NO_WARNINGS)
+ ADD_DEFINITIONS (-D_CONSOLE)
ENDIF (NOT CYGWIN)
ENDIF (WIN32)
diff --git a/perform/zip_perf.c b/perform/zip_perf.c
index 5e035f3..5729baf 100644
--- a/perform/zip_perf.c
+++ b/perform/zip_perf.c
@@ -29,14 +29,6 @@
#include <zlib.h>
-#if defined(MSDOS) || defined(OS2) || defined(_WIN32)
-# include <fcntl.h>
-# include <io.h>
-# define SET_BINARY_MODE(file) setmode(fileno(file), O_BINARY)
-#else
-# define SET_BINARY_MODE(file) /* nothing */
-#endif /* MSDOS || OS2 || _WIN32 */
-
#ifdef VMS
# define unlink delete
# define GZ_SUFFIX "-gz"