A minor code style change:

2017-05-13  Bruno Haible  <br...@clisp.org>

        Use symbolic values for _WIN32_WINNT.
        * lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
        * lib/sethostname.c (_WIN32_WINNT): Likewise.

diff --git a/lib/ftruncate.c b/lib/ftruncate.c
index f0ecae2..3dac017 100644
--- a/lib/ftruncate.c
+++ b/lib/ftruncate.c
@@ -31,7 +31,7 @@
 
 /* Ensure that <windows.h> 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 cb9b229..fc86ac8 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
 


Reply via email to