summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2020-01-30 20:33:47 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2020-01-30 20:33:47 (GMT)
commita29f9e8451ffa391c8395db1142bd003f40f3aaa (patch)
treecbd191c05f7339d1fa502ed8efe880abd772fd1e /src
parent1531c49730e33e897cdfbdd0bf88267dd7f7c0f4 (diff)
downloadhdf5-a29f9e8451ffa391c8395db1142bd003f40f3aaa.zip
hdf5-a29f9e8451ffa391c8395db1142bd003f40f3aaa.tar.gz
hdf5-a29f9e8451ffa391c8395db1142bd003f40f3aaa.tar.bz2
Merge changes from develop to fix various issues
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h3
-rw-r--r--src/H5win32defs.h6
2 files changed, 9 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 74fab79..7ff0c87 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -1032,6 +1032,9 @@ typedef off_t h5_stat_size_t;
#ifndef HDislower
#define HDislower(C) islower((int)(C)) /*cast for solaris warning*/
#endif /* HDislower */
+#ifndef HDisnan
+ #define HDisnan(X) isnan(X)
+#endif /* HDisnan */
#ifndef HDisprint
#define HDisprint(C) isprint((int)(C)) /*cast for solaris warning*/
#endif /* HDisprint */
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()