summaryrefslogtreecommitdiff
path: root/lib/sethostname.c
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2017-05-13 13:07:26 +0200
committerBruno Haible <bruno@clisp.org>2017-05-13 16:16:05 +0200
commit47727ffa4119de24554d6156073f9fcb275d2742 (patch)
tree39621b15417e9e1621ec006d6ba5778dc6bd85cc /lib/sethostname.c
parent4ecbdc8220d02aecdde6174d77ebb6d2e23edefd (diff)
downloadgnulib-47727ffa4119de24554d6156073f9fcb275d2742.tar.gz
Use symbolic values for _WIN32_WINNT.
* lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K. * lib/sethostname.c (_WIN32_WINNT): Likewise.
Diffstat (limited to 'lib/sethostname.c')
-rw-r--r--lib/sethostname.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/sethostname.c b/lib/sethostname.c
index cb9b229f8d..fc86ac8a8b 100644
--- a/lib/sethostname.c
+++ b/lib/sethostname.c
@@ -89,7 +89,7 @@ sethostname (const char *name, size_t len)
/* Ensure that <windows.h> declares SetComputerNameEx. */
#undef _WIN32_WINNT
-#define _WIN32_WINNT 0x500
+#define _WIN32_WINNT _WIN32_WINNT_WIN2K
#define WIN32_LEAN_AND_MEAN