bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

code style for _WIN32_WINNT


From: Bruno Haible
Subject: code style for _WIN32_WINNT
Date: Sat, 13 May 2017 16:20:37 +0200
User-agent: KMail/5.1.3 (Linux/4.4.0-75-generic; KDE/5.18.0; x86_64; ; )

A minor code style change:


2017-05-13  Bruno Haible  <address@hidden>

        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

[Prev in Thread] Current Thread [Next in Thread]