From b3e7158c549fd5c4599d9530faba10a6a101f14d Mon Sep 17 00:00:00 2001 From: Pedro Vicente Nunes Date: Thu, 30 Oct 2008 11:11:21 -0500 Subject: [svn-r15996] Added a definition of HDftruncate for windows to compile with VC6 and later versions Tested: windows --- src/H5win32defs.h | 6 ++++++ 1 file changed, 6 insertions(+) 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) -- cgit v0.12