summaryrefslogtreecommitdiffstats
path: root/src/H5win32defs.h
diff options
context:
space:
mode:
authorjhendersonHDF <jhenderson@hdfgroup.org>2023-05-19 16:05:01 (GMT)
committerGitHub <noreply@github.com>2023-05-19 16:05:01 (GMT)
commitd7cb8aca5b4d07f9d04cd5aba618d4ec4dda7ac2 (patch)
tree4d9bfceb738e8aa19f2d34e8171433e59d16e496 /src/H5win32defs.h
parent14edcfaffd6c2bbe487236742ae19093be9fe9dd (diff)
downloadhdf5-d7cb8aca5b4d07f9d04cd5aba618d4ec4dda7ac2.zip
hdf5-d7cb8aca5b4d07f9d04cd5aba618d4ec4dda7ac2.tar.gz
hdf5-d7cb8aca5b4d07f9d04cd5aba618d4ec4dda7ac2.tar.bz2
Add test for HDstrcasestr macro (#2115)
Diffstat (limited to 'src/H5win32defs.h')
-rw-r--r--src/H5win32defs.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/H5win32defs.h b/src/H5win32defs.h
index a1299b1..1b65c79 100644
--- a/src/H5win32defs.h
+++ b/src/H5win32defs.h
@@ -81,7 +81,7 @@ struct timezone {
#define HDsleep(S) Sleep(S * 1000)
#define HDstat(S, B) _stati64(S, B)
#define HDstrcasecmp(A, B) _stricmp(A, B)
-#define HDstrcasestr(A, B) StrStrIA(A, B)
+#define HDstrcasestr(A, B) Wstrcasestr_wrap(A, B)
#define HDstrndup(S, N) H5_strndup(S, N)
#define HDstrtok_r(X, Y, Z) strtok_s(X, Y, Z)
#define HDtzset() _tzset()
@@ -106,6 +106,7 @@ H5_DLL int Wopen_utf8(const char *path, int oflag, ...);
H5_DLL int Wremove_utf8(const char *path);
H5_DLL int H5_get_win32_times(H5_timevals_t *tvs);
H5_DLL char *H5_strndup(const char *s, size_t n);
+H5_DLL char *Wstrcasestr_wrap(const char *haystack, const char *needle);
#ifdef __cplusplus
}
#endif /* __cplusplus */