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 /src/cairo-misc.c | |
parent | 1e0249ae0d2731043798da8616f2980f1c5328cf (diff) | |
download | cairo-8520ef522168882b602efa6c322592e0fe56689f.tar.gz |
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 'src/cairo-misc.c')
-rw-r--r-- | src/cairo-misc.c | 9 |
1 files changed, 0 insertions, 9 deletions
diff --git a/src/cairo-misc.c b/src/cairo-misc.c index edbd98003..7ac0e8d05 100644 --- a/src/cairo-misc.c +++ b/src/cairo-misc.c @@ -976,15 +976,6 @@ _cairo_fopen (const char *filename, const char *mode, FILE **file_out) #ifdef _WIN32 -#define WIN32_LEAN_AND_MEAN -/* We require Windows 2000 features such as ETO_PDY */ -#if !defined(WINVER) || (WINVER < 0x0500) -# define WINVER 0x0500 -#endif -#if !defined(_WIN32_WINNT) || (_WIN32_WINNT < 0x0500) -# define _WIN32_WINNT 0x0500 -#endif - #include <windows.h> #include <io.h> |