From 6030317e1e23576e1e4ce308342a837fb0688a4d Mon Sep 17 00:00:00 2001 From: MuQun Yang Date: Wed, 24 Apr 2002 09:52:36 -0500 Subject: [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 --- src/H5private.h | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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) -- cgit v0.12