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 /perf | |
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 'perf')
-rw-r--r-- | perf/cairo-perf.c | 1 | ||||
-rw-r--r-- | perf/dirent-win32.h | 1 |
2 files changed, 0 insertions, 2 deletions
diff --git a/perf/cairo-perf.c b/perf/cairo-perf.c index ebef8eb59..244d6cb74 100644 --- a/perf/cairo-perf.c +++ b/perf/cairo-perf.c @@ -37,7 +37,6 @@ #endif #if defined(_WIN32) -#define WIN32_LEAN_AND_MEAN #include <windows.h> #elif defined(_POSIX_PRIORITY_SCHEDULING) #include <sched.h> diff --git a/perf/dirent-win32.h b/perf/dirent-win32.h index 0f2ed05e5..435a6cfa2 100644 --- a/perf/dirent-win32.h +++ b/perf/dirent-win32.h @@ -26,7 +26,6 @@ #include "cairo-compiler-private.h" -#define WIN32_LEAN_AND_MEAN #include <windows.h> #define stat _stat |