diff options
author | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-30 16:16:42 (GMT) |
---|---|---|
committer | Pedro Vicente Nunes <pvn@hdfgroup.org> | 2008-10-30 16:16:42 (GMT) |
commit | 4cf750810e6cea4607c1d4b9828b47320413dba0 (patch) | |
tree | b464f86d482139ee4fa68085415201f651be8d23 | |
parent | 0b56bcc1f3c5355b2bcd583242dc649fb0e76c73 (diff) | |
download | hdf5-4cf750810e6cea4607c1d4b9828b47320413dba0.zip hdf5-4cf750810e6cea4607c1d4b9828b47320413dba0.tar.gz hdf5-4cf750810e6cea4607c1d4b9828b47320413dba0.tar.bz2 |
[svn-r15997] Merge from 1.8
Added a definition of HDftruncate for windows to compile with VC6 and later versions
Tested: windows
-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) |