diff options
Diffstat (limited to 'src/H5Fproto.h')
-rw-r--r-- | src/H5Fproto.h | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/src/H5Fproto.h b/src/H5Fproto.h index 0600179..7236bdd 100644 --- a/src/H5Fproto.h +++ b/src/H5Fproto.h @@ -23,6 +23,16 @@ #define H5ACC_WRITE 0x0001 /* User in H5Fopen to open a file with write access */ #define H5ACC_OVERWRITE 0x0002 /* User in H5Fcreate truncate an existing file */ +/* + * If we're using POSIXUNBUFIO and lseek64() is available, then use + * 64-bit file offsets. Otherwise use whatever `off_t' is. + */ +#if (FILELIB==POSIXUNBUFIO) && defined(H5_HAVE_OFF64_T) && defined(H5_HAVE_LSEEK64) +typedef off64_t haddr_t; +#else +typedef off_t haddr_t; +#endif + #if defined c_plusplus || defined __cplusplus extern "C" { |