From 8520ef522168882b602efa6c322592e0fe56689f Mon Sep 17 00:00:00 2001 From: Fujii Hironori Date: Thu, 12 Jan 2023 06:57:51 +0900 Subject: Defining Windows version macros in meson.build WINVER and _WIN32_WINNT macros were defined in each source files and headers that were including . However, because DirectWrite requires new Windows API, some files included without the version macros. This inconsistency sometimes caused troubles. Define the version macros in meson.build. --- boilerplate/cairo-boilerplate-win32-printing.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'boilerplate') diff --git a/boilerplate/cairo-boilerplate-win32-printing.c b/boilerplate/cairo-boilerplate-win32-printing.c index 3d815167f..e8fcdcef5 100644 --- a/boilerplate/cairo-boilerplate-win32-printing.c +++ b/boilerplate/cairo-boilerplate-win32-printing.c @@ -26,14 +26,6 @@ * Adrian Johnson */ -/* We require Windows 2000 features such as GetDefaultPrinter() */ -#if !defined(WINVER) || (WINVER < 0x0500) -# define WINVER 0x0500 -#endif -#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500) -# define _WIN32_WINNT 0x0500 -#endif - #include "cairo-boilerplate-private.h" #include "cairo-malloc-private.h" -- cgit v1.2.1