diff options
author | Albert Cheng <acheng@hdfgroup.org> | 2010-08-05 00:13:49 (GMT) |
---|---|---|
committer | Albert Cheng <acheng@hdfgroup.org> | 2010-08-05 00:13:49 (GMT) |
commit | 30ac7d89a2ceb5ea3168ac61748905d9625811eb (patch) | |
tree | 6bc3a1c7c96df54269efe4fb29021cd198a54d75 /src/H5win32defs.h | |
parent | ecee0e5e1ed0c041dd50897c54ffb211fabd9283 (diff) | |
download | hdf5-30ac7d89a2ceb5ea3168ac61748905d9625811eb.zip hdf5-30ac7d89a2ceb5ea3168ac61748905d9625811eb.tar.gz hdf5-30ac7d89a2ceb5ea3168ac61748905d9625811eb.tar.bz2 |
[svn-r19170] 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) |