summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2000-12-22 18:56:38 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2000-12-22 18:56:38 (GMT)
commitebe4c545e1f4286f7ddd6219bfdcf5d7c23d9364 (patch)
tree52617ba0bc7d59d427ad3c3d50b587735ffe0180 /src
parent00d05eb3dff80daa71cd91e1c68ff236546446de (diff)
downloadhdf5-ebe4c545e1f4286f7ddd6219bfdcf5d7c23d9364.zip
hdf5-ebe4c545e1f4286f7ddd6219bfdcf5d7c23d9364.tar.gz
hdf5-ebe4c545e1f4286f7ddd6219bfdcf5d7c23d9364.tar.bz2
[svn-r3192]
Purpose: a windows bug fix Description: so that sec2 driver can support >2 G file on windows NTFS Solution: using lseek_i64 for windows platform Platforms tested: tested on windows 2000, confirmed on eirene and arabica
Diffstat (limited to 'src')
-rw-r--r--src/H5FDsec2.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5FDsec2.c b/src/H5FDsec2.c
index 933b46b..df25737 100644
--- a/src/H5FDsec2.c
+++ b/src/H5FDsec2.c
@@ -90,14 +90,20 @@ typedef struct H5FD_sec2_t {
* file_seek: The function which adjusts the current file position,
* either lseek() or lseek64().
*/
+/* adding for windows NT file system support. */
+
#ifdef H5_HAVE_LSEEK64
# define file_offset_t off64_t
# define file_seek lseek64
+#elif defined WIN32
+# define file_offset_t __int64
+# define file_seek _lseeki64
#else
# define file_offset_t off_t
# define file_seek lseek
#endif
+
/*
* These macros check for overflow of various quantities. These macros
* assume that file_offset_t is signed and haddr_t and size_t are unsigned.