[gtk: 1/19] Raise _WIN32_WINNT macro to target Windows 7 API
- From: Matthias Clasen <matthiasc src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gtk: 1/19] Raise _WIN32_WINNT macro to target Windows 7 API
- Date: Fri, 20 Aug 2021 11:31:17 +0000 (UTC)
commit edd73ffbedbe6f6b092c4af212522af00e2724c5
Author: Luca Bacci <luca bacci982 gmail com>
Date: Tue Jun 29 14:27:13 2021 +0200
Raise _WIN32_WINNT macro to target Windows 7 API
gdk/win32/gdkdisplay-win32.c | 1 -
gdk/win32/gdkmonitor-win32.c | 16 ----------------
gdk/win32/gdkprivate-win32.h | 9 ---------
gdk/win32/gdkscreen-win32.c | 2 --
gdk/win32/meson.build | 2 ++
5 files changed, 2 insertions(+), 28 deletions(-)
---
diff --git a/gdk/win32/gdkdisplay-win32.c b/gdk/win32/gdkdisplay-win32.c
index 259391f94a..84d99b78a6 100644
--- a/gdk/win32/gdkdisplay-win32.c
+++ b/gdk/win32/gdkdisplay-win32.c
@@ -18,7 +18,6 @@
#include "config.h"
-#define _WIN32_WINNT 0x0600
#define VK_USE_PLATFORM_WIN32_KHR
#include "gdk.h"
diff --git a/gdk/win32/gdkmonitor-win32.c b/gdk/win32/gdkmonitor-win32.c
index 0dad478345..9dd7572d5f 100644
--- a/gdk/win32/gdkmonitor-win32.c
+++ b/gdk/win32/gdkmonitor-win32.c
@@ -15,22 +15,6 @@
* License along with this library. If not, see <http://www.gnu.org/licenses/>.
*/
-#if defined (_WIN32_WINNT) && WIN32_WINNT < 0x0601
-# undef _WIN32_WINNT
-
-# define _WIN32_WINNT 0x0601
-# ifdef WINVER
-# undef WINVER
-# endif
-# define WINVER _WIN32_WINNT
-#elif !defined (_WIN32_WINNT)
-# define _WIN32_WINNT 0x0601
-# ifdef WINVER
-# undef WINVER
-# endif
-# define WINVER _WIN32_WINNT
-#endif
-
#include "config.h"
#include "gdkprivate-win32.h"
diff --git a/gdk/win32/gdkprivate-win32.h b/gdk/win32/gdkprivate-win32.h
index 48042f28f0..cf3cb38fec 100644
--- a/gdk/win32/gdkprivate-win32.h
+++ b/gdk/win32/gdkprivate-win32.h
@@ -25,15 +25,6 @@
#ifndef __GDK_PRIVATE_WIN32_H__
#define __GDK_PRIVATE_WIN32_H__
-#ifndef WINVER
-/* Vista or newer */
-#define WINVER 0x0600
-#endif
-
-#ifndef _WIN32_WINNT
-#define _WIN32_WINNT WINVER
-#endif
-
#include <gdk/gdkcursorprivate.h>
#include <gdk/win32/gdksurface-win32.h>
#include <gdk/win32/gdkwin32display.h>
diff --git a/gdk/win32/gdkscreen-win32.c b/gdk/win32/gdkscreen-win32.c
index b1e4694876..623658395b 100644
--- a/gdk/win32/gdkscreen-win32.c
+++ b/gdk/win32/gdkscreen-win32.c
@@ -17,8 +17,6 @@
#include "config.h"
-#define _WIN32_WINNT 0x0600
-
#include "gdk.h"
#include "gdkprivate-win32.h"
#include "gdkwin32screen.h"
diff --git a/gdk/win32/meson.build b/gdk/win32/meson.build
index 1f4c9d6e9f..8891a74081 100644
--- a/gdk/win32/meson.build
+++ b/gdk/win32/meson.build
@@ -62,6 +62,8 @@ libgdk_win32 = static_library('gdk-win32',
'-DGTK_COMPILATION',
'-DG_LOG_DOMAIN="Gdk"',
'-DINSIDE_GDK_WIN32',
+ '-D_WIN32_WINNT=0x0601',
+ '-DWINVER=0x0601',
] + GDK_WIN32_EGL_CFLAGS,
dependencies: [ gdk_deps, gdk_win32_deps ],
)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]