summaryrefslogtreecommitdiffstats
path: root/src/H5system.c
diff options
context:
space:
mode:
authorDana Robinson <43805+derobins@users.noreply.github.com>2021-07-06 17:39:15 (GMT)
committerGitHub <noreply@github.com>2021-07-06 17:39:15 (GMT)
commit8e2fc4a2e2325a006d42b1df5c339549cdd2cb94 (patch)
treea8e9ba199a98b20bb66142af1f4efd751119ea81 /src/H5system.c
parent257c8c745446ee614f92624b30cec41d8d771e05 (diff)
downloadhdf5-8e2fc4a2e2325a006d42b1df5c339549cdd2cb94.zip
hdf5-8e2fc4a2e2325a006d42b1df5c339549cdd2cb94.tar.gz
hdf5-8e2fc4a2e2325a006d42b1df5c339549cdd2cb94.tar.bz2
Remove checks for winsock2.h (#813)
This is only needed on Windows and always available, so there's no need to check for it.
Diffstat (limited to 'src/H5system.c')
-rw-r--r--src/H5system.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/H5system.c b/src/H5system.c
index 0849373..eba8341 100644
--- a/src/H5system.c
+++ b/src/H5system.c
@@ -365,7 +365,7 @@ Wsetenv(const char *name, const char *value, int overwrite)
return (int)_putenv_s(name, value);
} /* end Wsetenv() */
-#ifdef H5_HAVE_WINSOCK2_H
+#ifdef H5_HAVE_WIN32_API
#pragma comment(lib, "advapi32.lib")
#endif
@@ -450,12 +450,12 @@ char *
Wgetlogin(void)
{
-#ifdef H5_HAVE_WINSOCK2_H
+#ifdef H5_HAVE_WIN32_API
DWORD bufferCount = WloginBuffer_count;
if (GetUserName(Wlogin_buffer, &bufferCount) != 0)
return (Wlogin_buffer);
else
-#endif /* H5_HAVE_WINSOCK2_H */
+#endif
return NULL;
}