summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorMark Kittisopikul <mkitti@users.noreply.github.com>2023-01-17 15:27:25 (GMT)
committerGitHub <noreply@github.com>2023-01-17 15:27:25 (GMT)
commit720e04e196aac60b8914830b0297fdf291cb7f00 (patch)
treede1e7dec652e3805fcdbe18ee76359fe2cddad20 /src
parent5543d6eb36bbb32ede0598b0f36641933368f90f (diff)
downloadhdf5-720e04e196aac60b8914830b0297fdf291cb7f00.zip
hdf5-720e04e196aac60b8914830b0297fdf291cb7f00.tar.gz
hdf5-720e04e196aac60b8914830b0297fdf291cb7f00.tar.bz2
Include shlwapi.h explicitly on Windows (#2407)
* Include shlwapi.h explicitly * Add shlwapi library to LINK_LIB when header is detected Looking for StrStrIA in the shlwapi library is not reliable due to stdcall on mingw32.
Diffstat (limited to 'src')
-rw-r--r--src/H5private.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/H5private.h b/src/H5private.h
index 0b68305..6ed0aa2 100644
--- a/src/H5private.h
+++ b/src/H5private.h
@@ -125,6 +125,7 @@
#include <direct.h> /* For _getcwd() */
#include <io.h> /* POSIX I/O */
#include <winsock2.h> /* For GetUserName() */
+#include <shlwapi.h> /* For StrStrIA */
#ifdef H5_HAVE_THREADSAFE
#include <process.h> /* For _beginthread() */