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. --- perf/cairo-perf.c | 1 - perf/dirent-win32.h | 1 - 2 files changed, 2 deletions(-) (limited to 'perf') 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 #elif defined(_POSIX_PRIORITY_SCHEDULING) #include 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 #define stat _stat -- cgit v1.2.1