diff options
-rw-r--r-- | src/H5win32defs.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h index 2f947c1..41e2edd 100644 --- a/src/H5win32defs.h +++ b/src/H5win32defs.h @@ -33,7 +33,13 @@ typedef __int64 h5_stat_size_t; #define HDdup(F) _dup(F) #define HDfdopen(N,S) _fdopen(N,S) #define HDfileno(F) _fileno(F) + +#if _MSC_VER > 1200 #define HDftruncate(F,L) _chsize_s(F,L) +#else +#define HDftruncate(F,L) chsize(F,L) +#endif + #define HDfstat(F,B) _fstati64(F,B) #define HDisatty(F) _isatty(F) #define HDstat(S,B) _stati64(S,B) |