summaryrefslogtreecommitdiffstats
path: root/src/H5private.h
diff options
context:
space:
mode:
authorMuQun Yang <ymuqun@hdfgroup.org>2002-04-24 14:52:36 (GMT)
committerMuQun Yang <ymuqun@hdfgroup.org>2002-04-24 14:52:36 (GMT)
commit6030317e1e23576e1e4ce308342a837fb0688a4d (patch)
tree1c24e8817df92bb3e56d1b6d3db6f4dce6088e40 /src/H5private.h
parentda58f157dd9aea4de12b4f448fa5cafbef2d32d0 (diff)
downloadhdf5-6030317e1e23576e1e4ce308342a837fb0688a4d.zip
hdf5-6030317e1e23576e1e4ce308342a837fb0688a4d.tar.gz
hdf5-6030317e1e23576e1e4ce308342a837fb0688a4d.tar.bz2
[svn-r5244]
Purpose: update macro HDstat Description: The original defination of HDstat only defines HDstat as stat. the file size defined at struct stat is int32, However for files greater than 4G(or 2G)file, lookup of file size will fail on windows when using stat. Add a macro for windows,define HDstat as istat64. This fix is the same as HDfstat macro. Solution: Platforms tested: linux 2.2.18
Diffstat (limited to 'src/H5private.h')
-rw-r--r--src/H5private.h6
1 files changed, 5 insertions, 1 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 47d44cd..c5c96ab 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -698,7 +698,11 @@ typedef struct stat h5_stat_t;
#define HDsqrt(X) sqrt(X)
#define HDsrand(N) srand(N)
/* sscanf() variable arguments */
-#define HDstat(S,B) stat(S,B)
+#ifdef WIN32
+#define HDstat(S,B) _stati64(S,B)
+#else
+#define HDstat(S,B) stat(S,B)
+#endif
#define HDstrcat(X,Y) strcat(X,Y)
#define HDstrchr(S,C) strchr(S,C)
#define HDstrcmp(X,Y) strcmp(X,Y)