diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-08-05 00:15:08 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-08-05 00:15:08 (GMT) |
commit | dc51db6583adbc23ab2862ee1093f4a49408c6f1 (patch) | |
tree | 16a1880866dd34dc91a6282eaf9e17066bfa299b /src/H5win32defs.h | |
parent | e86d77f479b86900fe97927413aba356cef113c5 (diff) | |
download | hdf5-dc51db6583adbc23ab2862ee1093f4a49408c6f1.zip hdf5-dc51db6583adbc23ab2862ee1093f4a49408c6f1.tar.gz hdf5-dc51db6583adbc23ab2862ee1093f4a49408c6f1.tar.bz2 |
[svn-r19171] Bug fix: 1917.
The previous fix had the Windows code in H5private.h but they should have been
in H5win32defs.h which holds all Windows-specific definitions. Moved the fix.
Tested: BP (AIX) to confirm the fix is still valid. Windows tests will occur
in daily tests tonight.
Diffstat (limited to 'src/H5win32defs.h')
-rw-r--r-- | src/H5win32defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h index 141ec82..d478e4c 100644 --- a/src/H5win32defs.h +++ b/src/H5win32defs.h @@ -56,6 +56,12 @@ typedef __int64 h5_stat_size_t; #endif /* H5_HAVE_GETTIMEOFDAY */ #define HDgetdrive() _getdrive() #define HDlseek(F,O,W) _lseeki64(F,O,W) +#if !defined(__MWERKS__) +# /*MSVC*/ +# define HDoff_t __int64 +#else +# define HDoff_t off_t +#endif #define HDmemset(X,C,Z) memset((void*)(X),C,Z) #define HDmkdir(S,M) _mkdir(S) #define HDopen(S,F,M) _open(S,F|_O_BINARY,M) |