From 47727ffa4119de24554d6156073f9fcb275d2742 Mon Sep 17 00:00:00 2001 From: Bruno Haible Date: Sat, 13 May 2017 13:07:26 +0200 Subject: [PATCH] Use symbolic values for _WIN32_WINNT. * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K. * lib/sethostname.c (_WIN32_WINNT): Likewise. --- ChangeLog | 6 ++++++ lib/ftruncate.c | 2 +- lib/sethostname.c | 2 +- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 5629553223..0ef54eee24 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2017-05-13 Bruno Haible + + Use symbolic values for _WIN32_WINNT. + * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K. + * lib/sethostname.c (_WIN32_WINNT): Likewise. + 2017-05-13 Bruno Haible year2038: New module. diff --git a/lib/ftruncate.c b/lib/ftruncate.c index f0ecae27b4..3dac017513 100644 --- a/lib/ftruncate.c +++ b/lib/ftruncate.c @@ -31,7 +31,7 @@ /* Ensure that declares GetFileSizeEx. */ # undef _WIN32_WINNT -# define _WIN32_WINNT 0x500 +# define _WIN32_WINNT _WIN32_WINNT_WIN2K /* Get declarations of the native Windows API functions. */ # define WIN32_LEAN_AND_MEAN 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 declares SetComputerNameEx. */ #undef _WIN32_WINNT -#define _WIN32_WINNT 0x500 +#define _WIN32_WINNT _WIN32_WINNT_WIN2K #define WIN32_LEAN_AND_MEAN -- 2.39.5