diff options
author | MuQun Yang <ymuqun@hdfgroup.org> | 2002-12-13 16:25:51 (GMT) |
---|---|---|
committer | MuQun Yang <ymuqun@hdfgroup.org> | 2002-12-13 16:25:51 (GMT) |
commit | 1c0e435421c64f550040a2d34e63535e69dfcfb2 (patch) | |
tree | a6e69987fcdbc1f2cf62540d750f321988ab48d0 /src/H5private.h | |
parent | ae1e58baeab79e06a94d23b57231beb604762738 (diff) | |
download | hdf5-1c0e435421c64f550040a2d34e63535e69dfcfb2.zip hdf5-1c0e435421c64f550040a2d34e63535e69dfcfb2.tar.gz hdf5-1c0e435421c64f550040a2d34e63535e69dfcfb2.tar.bz2 |
[svn-r6202]
Purpose:
Fix bugs for windows platform.
Description:
1. Update HDlseek for windows
2. Update H5Otime.c for normal time(non-daylight time)
3. Add H5_DLL in front of two functions so that windows DLL can work.
Solution:
Platforms tested:
windows 2000, eirene(since most updates have WIN32 around it, not need to test other platforms)
Misc. update:
Update MANIFEST if you add or remove any file.
Update release_docs/RELEASE for bug fixes, new features, etc.
Update applicable document files too.
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h index 1cd39c3..e4ba48b 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -622,7 +622,15 @@ typedef struct stat h5_stat_t; #define HDlog(X) log(X) #define HDlog10(X) log10(X) #define HDlongjmp(J,N) longjmp(J,N) +#ifdef WIN32 + #ifdef __MWERKS__ + #define HDlseek(F,O,W) lseek(F,O,W) + #else /*MSVS */ + #define HDlseek(F,O,W) _lseeki64(F,O,W) + #endif +#else #define HDlseek(F,O,W) lseek(F,O,W) +#endif #define HDmalloc(Z) malloc(Z) #define HDmblen(S,N) mblen(S,N) #define HDmbstowcs(P,S,Z) mbstowcs(P,S,Z) |