summaryrefslogtreecommitdiffstats
path: root/src/H5win32defs.h
diff options
context:
space:
mode:
authorDana Robinson <derobins@hdfgroup.org>2018-12-16 04:02:37 (GMT)
committerDana Robinson <derobins@hdfgroup.org>2018-12-16 04:02:37 (GMT)
commit1b5190011bde5f2f47b01429cd97c11ade66f911 (patch)
tree177cc2b7909aa06fde3ad4bd26f0f1384bc66b63 /src/H5win32defs.h
parentbc0a08d997b1096e0fc51d6d5d52febc655f069d (diff)
downloadhdf5-1b5190011bde5f2f47b01429cd97c11ade66f911.zip
hdf5-1b5190011bde5f2f47b01429cd97c11ade66f911.tar.gz
hdf5-1b5190011bde5f2f47b01429cd97c11ade66f911.tar.bz2
Added #define to use strtok_s instead of strtok_r on Windows.
Diffstat (limited to 'src/H5win32defs.h')
-rw-r--r--src/H5win32defs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index 4522228..c5e41d4 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -62,6 +62,7 @@ typedef __int64 h5_stat_size_t;
#define HDstat(S,B) _stati64(S,B)
#define HDstrcasecmp(A,B) _stricmp(A,B)
#define HDstrdup(S) _strdup(S)
+#define HDstrtok_r(X,Y,Z) strtok_s(X,Y,Z)
#define HDtzset() _tzset()
#define HDunlink(S) _unlink(S)
#define HDwrite(F,M,Z) _write(F,M,Z)