summaryrefslogtreecommitdiffstats
path: root/src/H5win32defs.h
diff options
context:
space:
mode:
authorAllen Byrne <byrn@hdfgroup.org>2017-03-16 17:58:49 (GMT)
committerAllen Byrne <byrn@hdfgroup.org>2017-03-16 17:59:20 (GMT)
commit24b11709aff9e88de172342faed165ec08985e42 (patch)
treedd8f8bafddad77819df352d970e6a4f3ffe521ce /src/H5win32defs.h
parent368089572a079f0801ab7177aab2719d4cbd4e48 (diff)
downloadhdf5-24b11709aff9e88de172342faed165ec08985e42.zip
hdf5-24b11709aff9e88de172342faed165ec08985e42.tar.gz
hdf5-24b11709aff9e88de172342faed165ec08985e42.tar.bz2
Update cmake pubconf to match autotools and add strtoll checks
Diffstat (limited to 'src/H5win32defs.h')
-rw-r--r--src/H5win32defs.h16
1 files changed, 15 insertions, 1 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index b419f06..e005b51 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -23,6 +23,11 @@
*
*/
+/*
+ * _MSC_VER = 1900 VS2015
+ * _MSC_VER = 1800 VS2013
+ * _MSC_VER = 1700 VS2012
+ */
#ifdef H5_HAVE_WIN32_API
typedef struct _stati64 h5_stat_t;
@@ -54,13 +59,22 @@ typedef __int64 h5_stat_size_t;
#define HDsleep(S) Sleep(S*1000)
#define HDstat(S,B) _stati64(S,B)
#define HDstrcasecmp(A,B) _stricmp(A,B)
-#define HDstrtoull(S,R,N) _strtoui64(S,R,N)
#define HDstrdup(S) _strdup(S)
#define HDtzset() _tzset()
#define HDunlink(S) _unlink(S)
#define HDwrite(F,M,Z) _write(F,M,Z)
#ifdef H5_HAVE_VISUAL_STUDIO
+
+#if (_MSC_VER < 1800)
+ #ifndef H5_HAVE_STRTOLL
+ #define HDstrtoll(S,R,N) _strtoi64(S,R,N)
+ #endif /* H5_HAVE_STRTOLL */
+ #ifndef H5_HAVE_STRTOULL
+ #define HDstrtoull(S,R,N) _strtoui64(S,R,N)
+ #endif /* H5_HAVE_STRTOULL */
+#endif /* MSC_VER < 1800 */
+
/*
* The (void*) cast just avoids a compiler warning in H5_HAVE_VISUAL_STUDIO
*/