diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2002-11-26 16:19:54 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2002-11-26 16:19:54 (GMT) |
commit | 577bfbfc48bcc9510ebca1d2891797a958dd8264 (patch) | |
tree | a30d8490185df3ff4540af61c44419e6a1123eb6 /src/H5private.h | |
parent | f5f61bf7832273bf3701002377659a4e98c404b3 (diff) | |
download | hdf5-577bfbfc48bcc9510ebca1d2891797a958dd8264.zip hdf5-577bfbfc48bcc9510ebca1d2891797a958dd8264.tar.gz hdf5-577bfbfc48bcc9510ebca1d2891797a958dd8264.tar.bz2 |
[svn-r6140] Purpose:
code warrior fix
CW does not recognize the _stati64 type, changed HDstat macro accordingly
Platforms tested:
windows 2000 (MSVC, Code warrior)
linux
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 21 |
1 files changed, 17 insertions, 4 deletions
diff --git a/src/H5private.h b/src/H5private.h index 898a62e..1cd39c3 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -564,12 +564,18 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...); #define HDfsetpos(F,P) fsetpos(F,P) /* definitions related to the file stat utilities */ #ifdef WIN32 -#define HDfstat(F,B) _fstati64(F,B) -typedef struct _stati64 h5_stat_t; + #ifdef __MWERKS__ + #define HDfstat(F,B) fstat(F,B) + typedef struct stat h5_stat_t; + #else /*MSVC*/ + #define HDfstat(F,B) _fstati64(F,B) + typedef struct _stati64 h5_stat_t; + #endif #else #define HDfstat(F,B) fstat(F,B) typedef struct stat h5_stat_t; #endif + #define HDftell(F) ftell(F) #define HDftruncate(F,L) ftruncate(F,L) #define HDfwrite(M,Z,N,F) fwrite(M,Z,N,F) @@ -706,11 +712,18 @@ typedef struct stat h5_stat_t; #define HDsqrt(X) sqrt(X) #define HDsrand(N) srand(N) /* sscanf() variable arguments */ + + #ifdef WIN32 -#define HDstat(S,B) _stati64(S,B) + #ifdef __MWERKS__ + #define HDstat(S,B) stat(S,B) + #else /*MSVC*/ + #define HDstat(S,B) _stati64(S,B) + #endif #else -#define HDstat(S,B) stat(S,B) +#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) |