[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
master 9d5b675: Fix MS-Windows compilation of Gnulib with old versions o
From: |
Eli Zaretskii |
Subject: |
master 9d5b675: Fix MS-Windows compilation of Gnulib with old versions of MinGW |
Date: |
Tue, 15 Sep 2020 11:10:33 -0400 (EDT) |
branch: master
commit 9d5b675f2c2d20a6d0da58038235a9982f620915
Author: Eli Zaretskii <eliz@gnu.org>
Commit: Eli Zaretskii <eliz@gnu.org>
Fix MS-Windows compilation of Gnulib with old versions of MinGW
* nt/inc/ms-w32.h (_WIN32_WINNT_WIN2K, _WIN32_WINNT_WINXP)
(_WIN32_WINNT_WS03, _WIN32_WINNT_VISTA, _WIN32_WINNT_WIN7,
_WIN32_WINNT_WIN8, _WIN32_WINNT_WINBLUE, _WIN32_WINNT_WIN10)
[__MINGW32__]: Define if any of these is not defined. Reported by
martin rudalics <rudalics@gmx.at>.
---
nt/inc/ms-w32.h | 26 ++++++++++++++++++++++++++
1 file changed, 26 insertions(+)
diff --git a/nt/inc/ms-w32.h b/nt/inc/ms-w32.h
index 4cbae16..2c754f9 100644
--- a/nt/inc/ms-w32.h
+++ b/nt/inc/ms-w32.h
@@ -39,6 +39,32 @@ along with GNU Emacs. If not, see
<https://www.gnu.org/licenses/>. */
# undef __POSIX_2008_DEPRECATED
# define __POSIX_2008_DEPRECATED
# endif
+/* Old versions of MinGW don't have these in the w32api headers, and
+ Gnulib uses them in some files. */
+# ifndef _WIN32_WINNT_WIN2K
+# define _WIN32_WINNT_WIN2K 0x0500
+# endif
+# ifndef _WIN32_WINNT_WINXP
+# define _WIN32_WINNT_WINXP 0x0501
+# endif
+# ifndef _WIN32_WINNT_WS03
+# define _WIN32_WINNT_WS03 0x0502
+# endif
+# ifndef _WIN32_WINNT_VISTA
+# define _WIN32_WINNT_VISTA 0x0600
+# endif
+# ifndef _WIN32_WINNT_WIN7
+# define _WIN32_WINNT_WIN7 0x0601
+# endif
+# ifndef _WIN32_WINNT_WIN8
+# define _WIN32_WINNT_WIN8 0x0602
+# endif
+# ifndef _WIN32_WINNT_WINBLUE
+# define _WIN32_WINNT_WINBLUE 0x0603
+# endif
+# ifndef _WIN32_WINNT_WIN10
+# define _WIN32_WINNT_WIN10 0x0A00
+# endif
#endif
/* #undef const */
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- master 9d5b675: Fix MS-Windows compilation of Gnulib with old versions of MinGW,
Eli Zaretskii <=