diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-16 04:27:11 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-06-16 04:27:11 (GMT) |
commit | 7a50d822778f339e14b355aedd4aeafac03704b9 (patch) | |
tree | 95c9182290e377c81b15e25f5634d43c38958a7a /src/H5FDlog.c | |
parent | 437d2abde96017df00abc7ee74d58ad033055b13 (diff) | |
download | hdf5-7a50d822778f339e14b355aedd4aeafac03704b9.zip hdf5-7a50d822778f339e14b355aedd4aeafac03704b9.tar.gz hdf5-7a50d822778f339e14b355aedd4aeafac03704b9.tar.bz2 |
[svn-r4010] Purpose:
Bug Fix
Description:
uint64_t type was accidentally taken out and was causing tests on DEC
UNIX to fail.
Solution:
Brought back uint64_t type.
Also cleaned up some comments and moved the sec2 specific macros back
into the sec2 (and log) driver.
Platforms tested:
DEC UNIX (gondolin)
Diffstat (limited to 'src/H5FDlog.c')
-rw-r--r-- | src/H5FDlog.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/H5FDlog.c b/src/H5FDlog.c index 4f64f09..ba16810 100644 --- a/src/H5FDlog.c +++ b/src/H5FDlog.c @@ -105,6 +105,36 @@ typedef struct H5FD_log_t { } H5FD_log_t; +/* + * This driver supports systems that have the lseek64() function by defining + * some macros here so we don't have to have conditional compilations later + * throughout the code. + * + * file_offset_t: The datatype for file offsets, the second argument of + * the lseek() or lseek64() call. + * + * file_seek: The function which adjusts the current file position, + * either lseek() or lseek64(). + */ +/* adding for windows NT file system support. */ +/* pvn: added __MWERKS__ support. */ + +#ifdef H5_HAVE_LSEEK64 +# define file_offset_t off64_t +# define file_seek lseek64 +#elif defined (WIN32) +# ifdef __MWERKS__ +# define file_offset_t off_t +# define file_seek lseek +# else /*MSVC*/ +# define file_offset_t __int64 +# define file_seek _lseeki64 +# endif +#else +# define file_offset_t off_t +# define file_seek lseek +#endif + /* * These macros check for overflow of various quantities. These macros |