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/H5private.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/H5private.h')
-rw-r--r-- | src/H5private.h | 13 |
1 files changed, 5 insertions, 8 deletions
diff --git a/src/H5private.h b/src/H5private.h index 29f1bf0..ff06bba 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -477,8 +477,9 @@ typedef struct { * function (or any other non-HDF5 function) in the source! */ - /* Use platform-specific versions if necessary */ -#include "H5win32defs.h" +/* Put all platform-specific definitions in the following file */ +/* so that the following definitions are platform free. */ +#include "H5win32defs.h" /* For Windows-specific definitions */ #ifndef HDabort #define HDabort() abort() @@ -906,18 +907,14 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...); #ifndef HDlongjmp #define HDlongjmp(J,N) longjmp(J,N) #endif /* HDlongjmp */ +/* HDlseek and HDoff_t must be defined together for consistency. */ #ifndef HDlseek #ifdef H5_HAVE_LSEEK64 #define HDlseek(F,O,W) lseek64(F,O,W) #define HDoff_t off64_t #else #define HDlseek(F,O,W) lseek(F,O,W) - #if defined (_WIN32) && !defined(__MWERKS__) - # /*MSVC*/ - # define HDoff_t __int64 - #else - # define HDoff_t off_t - #endif + #define HDoff_t off_t #endif #endif /* HDlseek */ #ifndef HDmalloc |