summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2011-03-25 18:35:07 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2011-03-25 18:35:07 (GMT)
commit378dc5ec28bd0592c71101cb1a422af73f3f8540 (patch)
treea470d44e95c7fa8b032e7a7b885eb6b4c4eb71dd
parentaa668a4f6438fc1eed958a8a27bad7795b2b383e (diff)
downloadhdf5-378dc5ec28bd0592c71101cb1a422af73f3f8540.zip
hdf5-378dc5ec28bd0592c71101cb1a422af73f3f8540.tar.gz
hdf5-378dc5ec28bd0592c71101cb1a422af73f3f8540.tar.bz2
[svn-r20335] Remove unused windows defines. Add _CONSOLE to windows definitions.
-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"