diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2002-04-19 07:20:41 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2002-04-19 07:20:41 (GMT) |
commit | f5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9 (patch) | |
tree | 8e8f3b4d1c47d20ccfecf11bd0b3a3a1cb5d2265 /src/H5FDsec2.c | |
parent | 40117dd3849be65d039ca6aa02bb6d6a338c7f7b (diff) | |
download | hdf5-f5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9.zip hdf5-f5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9.tar.gz hdf5-f5d5e9e2ff980545217a4f9efb6a4ff1ac90f8b9.tar.bz2 |
[svn-r5205] Purpose:
Code cleanup
Description:
Platform dependent code related to the struct stat and fstat
calls polluted source codes. Hard to maintain.
Solution:
Platform dependent code are moved to H5private.h and then internal
code can #include H5private.h. Repeat those macro definition for
the stdio and multi drivers since they area examples for writing
a virtual file driver. They must not use any internal code.
Platforms tested:
eirene (parallel), modi4 (serial including gass driver.)
Diffstat (limited to 'src/H5FDsec2.c')
-rw-r--r-- | src/H5FDsec2.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c index 8841b2b..026f27a 100644 --- a/src/H5FDsec2.c +++ b/src/H5FDsec2.c @@ -273,13 +273,11 @@ H5FD_sec2_open(const char *name, unsigned flags, hid_t UNUSED fapl_id, int fd; H5FD_sec2_t *file=NULL; #ifdef WIN32 - HFILE filehandle; - struct _BY_HANDLE_FILE_INFORMATION fileinfo; - int results; - struct _stati64 sb; -#else - struct stat sb; + HFILE filehandle; + struct _BY_HANDLE_FILE_INFORMATION fileinfo; + int results; #endif + h5_stat_t sb; FUNC_ENTER(H5FD_sec2_open, NULL); |