diff options
Diffstat (limited to 'src/H5private.h')
-rw-r--r-- | src/H5private.h | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/src/H5private.h b/src/H5private.h index fb0ca5e..4005b4d 100644 --- a/src/H5private.h +++ b/src/H5private.h @@ -618,7 +618,11 @@ H5_DLL int HDfprintf (FILE *stream, const char *fmt, ...); #define HDfrexpl(X,N) frexp(X,N) #endif /* H5_HAVE_FREXPL */ /* fscanf() variable arguments */ -#define HDfseek(F,O,W) fseek(F,O,W) +#ifdef H5_HAVE_FSEEKO + #define HDfseek(F,O,W) fseeko(F,O,W) +#else + #define HDfseek(F,O,W) fseek(F,O,W) +#endif #define HDfsetpos(F,P) fsetpos(F,P) /* definitions related to the file stat utilities */ #ifdef WIN32 @@ -690,7 +694,11 @@ typedef off_t h5_stat_size_t; #define HDlseek(F,O,W) _lseeki64(F,O,W) #endif #else -#define HDlseek(F,O,W) lseek(F,O,W) + #ifdef H5_HAVE_FSEEK64 + #define HDlseek(F,O,W) lseek64(F,O,W) + #else + #define HDlseek(F,O,W) lseek(F,O,W) + #endif #endif #define HDmalloc(Z) malloc(Z) #define HDmblen(S,N) mblen(S,N) |