]> Savannah Git Hosting - gnulib.git/commitdiff
Use symbolic values for _WIN32_WINNT.
authorBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 11:07:26 +0000 (13:07 +0200)
committerBruno Haible <bruno@clisp.org>
Sat, 13 May 2017 14:16:05 +0000 (16:16 +0200)
* lib/ftruncate.c (_WIN32_WINNT): Use symbolic value _WIN32_WINNT_WIN2K.
* lib/sethostname.c (_WIN32_WINNT): Likewise.

ChangeLog
lib/ftruncate.c
lib/sethostname.c

index 5629553223ba6eaa643ebbc8b12a939ad6d14f46..0ef54eee245e0f2b6a47869931d58f976400ff8d 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2017-05-13  Bruno Haible  <bruno@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.
+
 2017-05-13  Bruno Haible  <bruno@clisp.org>
 
        year2038: New module.
index f0ecae27b4bd5068f6e589d8529f670b2611900e..3dac017513cc93ab99a9166770fac1a7789c566c 100644 (file)
@@ -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
index cb9b229f8d1208e97a9bd28a664583d2d425ab8a..fc86ac8a8b355b8b3375db84e6c19e1ae3f48f3d 100644 (file)
@@ -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