diff options
author | Scott Wegner <swegner@hdfgroup.org> | 2008-06-09 18:41:29 (GMT) |
---|---|---|
committer | Scott Wegner <swegner@hdfgroup.org> | 2008-06-09 18:41:29 (GMT) |
commit | 7a92820e35582fc94f0dd46e5039547fddd3d98d (patch) | |
tree | 4edab170ada903be86940f82c306a2aa738afcb8 /tools/misc | |
parent | a97fa671eb16f7b12ed87c46c86501d0282aa364 (diff) | |
download | hdf5-7a92820e35582fc94f0dd46e5039547fddd3d98d.zip hdf5-7a92820e35582fc94f0dd46e5039547fddd3d98d.tar.gz hdf5-7a92820e35582fc94f0dd46e5039547fddd3d98d.tar.bz2 |
[svn-r15183] Purpose: _WIN32 macro cleanup
Description:
As part of our Windows cleanup, we try to remove windows-specific tweaks in the source code. There are many instances where Windows code is introduces via ifdef's. We re-evaluate whether they are still required, and found that many of them are not. Others we change to "feature"-specific code, rather than Windows-specific.
Tested:
VS2005 on WinXP
VS.NET on WinXP
h5committest (kagisopp, smirom, linew)
Diffstat (limited to 'tools/misc')
-rw-r--r-- | tools/misc/h5repart.c | 14 |
1 files changed, 0 insertions, 14 deletions
diff --git a/tools/misc/h5repart.c b/tools/misc/h5repart.c index f107e31..91df7b6 100644 --- a/tools/misc/h5repart.c +++ b/tools/misc/h5repart.c @@ -45,11 +45,6 @@ # include <sys/stat.h> #endif -#ifdef _WIN32 -# include <io.h> -# include <fcntl.h> -#endif - #ifndef FALSE # define FALSE 0 #endif @@ -216,21 +211,12 @@ main (int argc, char *argv[]) int dst_is_family; /*is dst name a family name? */ int dst_membno=0; /*destination member number */ -#if defined(_WIN32) && ! defined (__MWERKS__) - __int64 left_overs=0; /*amount of zeros left over */ - __int64 src_offset=0; /*offset in source member */ - __int64 dst_offset=0; /*offset in destination member */ - __int64 src_size; /*source logical member size */ - __int64 src_act_size; /*source actual member size */ - __int64 dst_size=1 GB; /*destination logical memb size */ -#else off_t left_overs=0; /*amount of zeros left over */ off_t src_offset=0; /*offset in source member */ off_t dst_offset=0; /*offset in destination member */ off_t src_size; /*source logical member size */ off_t src_act_size; /*source actual member size */ off_t dst_size=1 GB; /*destination logical memb size */ -#endif hid_t fapl; /*file access property list */ hid_t file; hsize_t hdsize; /*destination logical memb size */ |