diff options
author | Fujii Hironori <Hironori.Fujii@sony.com> | 2023-01-12 06:57:51 +0900 |
---|---|---|
committer | Fujii Hironori <Hironori.Fujii@sony.com> | 2023-01-13 05:47:03 +0900 |
commit | 8520ef522168882b602efa6c322592e0fe56689f (patch) | |
tree | 11451d417183fce2d8235c4f72900473e6e677d1 /boilerplate | |
parent | 1e0249ae0d2731043798da8616f2980f1c5328cf (diff) |
Defining Windows version macros in meson.build
WINVER and _WIN32_WINNT macros were defined in each source files and
headers that were including <windows.h>. However, because DirectWrite
requires new Windows API, some files included <windows.h> without the
version macros. This inconsistency sometimes caused troubles.
Define the version macros in meson.build.
Diffstat (limited to 'boilerplate')
-rw-r--r-- | boilerplate/cairo-boilerplate-win32-printing.c | 8 |
1 files changed, 0 insertions, 8 deletions
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 <ajohnson@redneon.com> */ -/* 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" |