diff --git a/CMakeLists.txt b/CMakeLists.txt index 242297935a..0dfe687e41 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 5e035f3ad5..5729baf837 100644 --- a/perform/zip_perf.c +++ b/perform/zip_perf.c @@ -29,14 +29,6 @@ #include -#if defined(MSDOS) || defined(OS2) || defined(_WIN32) -# include -# include -# 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"