diff options
author | Quincey Koziol <koziol@hdfgroup.org> | 2001-10-17 20:25:03 (GMT) |
---|---|---|
committer | Quincey Koziol <koziol@hdfgroup.org> | 2001-10-17 20:25:03 (GMT) |
commit | 3b2053492a7bb326c118633ad5e5d50985b7bf2b (patch) | |
tree | 8613fa4f267184bc1a903d565a9fb4c19ce6b267 /src/H5FDdpss.c | |
parent | 0cec5adf06503f7b0669b35e2833803308400c8e (diff) | |
download | hdf5-3b2053492a7bb326c118633ad5e5d50985b7bf2b.zip hdf5-3b2053492a7bb326c118633ad5e5d50985b7bf2b.tar.gz hdf5-3b2053492a7bb326c118633ad5e5d50985b7bf2b.tar.bz2 |
[svn-r4554] Purpose:
Bug Fix
Description:
Section of code which defined file offset and length macros was removed
a while ago and found during testing just now.
Solution:
Replaced section of code to define macros.
Platforms tested:
IRIX64 6.5 (modi4)
Diffstat (limited to 'src/H5FDdpss.c')
-rw-r--r-- | src/H5FDdpss.c | 30 |
1 files changed, 30 insertions, 0 deletions
diff --git a/src/H5FDdpss.c b/src/H5FDdpss.c index d9a7270..6fa1bc6 100644 --- a/src/H5FDdpss.c +++ b/src/H5FDdpss.c @@ -52,6 +52,36 @@ typedef struct H5FD_dpss_t { } H5FD_dpss_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 |