From c3974173a14380069c336dc7e65184685f41f32b Mon Sep 17 00:00:00 2001 From: Allen Byrne Date: Thu, 30 Jan 2020 13:23:45 -0600 Subject: VS2010 needs an underscore --- src/H5win32defs.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/H5win32defs.h b/src/H5win32defs.h index 29533dd..0a0bd37 100644 --- a/src/H5win32defs.h +++ b/src/H5win32defs.h @@ -40,6 +40,12 @@ typedef __int64 h5_stat_size_t; #define HDfileno(F) _fileno(F) #define HDfstat(F,B) _fstati64(F,B) #define HDisatty(F) _isatty(F) + +/* The isnan function needs underscore in VS2012 and earlier */ +#if (_MSC_VER <= 1700) + #define HDisnan(X) _isnan(X) +#endif /* MSC_VER < 1700 */ + #define HDgetcwd(S,Z) _getcwd(S,Z) #define HDgetdcwd(D,S,Z) _getdcwd(D,S,Z) #define HDgetdrive() _getdrive() -- cgit v0.12