From 16e46eecd8c72700c982c55daf919234dfd2e914 Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Fri, 25 Mar 2011 13:35:26 -0500 Subject: [svn-r20336] Remove unused windows defines. Add _CONSOLE to windows definitions. --- CMakeLists.txt | 1 + perform/zip_perf.c | 8 -------- 2 files changed, 1 insertion(+), 8 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 5f59da8..d1cf6a0 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -302,6 +302,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 -#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" -- cgit v0.12