From d987ddc0ee080e6c047ac8af4199625f417ba346 Mon Sep 17 00:00:00 2001 From: Ali Mohammad Pur Date: Mon, 12 Dec 2022 19:57:01 +0330 Subject: [PATCH] AK: Actually don't include for windows in Platform.h I got the conditions wrong last time, oops :^) --- AK/Platform.h | 14 ++++++++------ 1 file changed, 8 insertions(+), 6 deletions(-) diff --git a/AK/Platform.h b/AK/Platform.h index 534a0ab46b..f9dd0281bc 100644 --- a/AK/Platform.h +++ b/AK/Platform.h @@ -173,14 +173,16 @@ # define PAGE_SIZE 4096 // On macOS (at least Mojave), Apple's version of this header is not wrapped // in extern "C". -# elif defined(AK_OS_MACOS) +# else +# if defined(AK_OS_MACOS) extern "C" { -# endif -# include -# undef PAGE_SIZE -# define PAGE_SIZE sysconf(_SC_PAGESIZE) -# ifdef AK_OS_MACOS +# endif +# include +# undef PAGE_SIZE +# define PAGE_SIZE sysconf(_SC_PAGESIZE) +# ifdef AK_OS_MACOS } +# endif # endif #endif