diff options
author | Ali Mohammad Pur <ali.mpfard@gmail.com> | 2022-12-12 19:57:01 +0330 |
---|---|---|
committer | Linus Groh <mail@linusgroh.de> | 2022-12-12 17:01:16 +0000 |
commit | d987ddc0ee080e6c047ac8af4199625f417ba346 (patch) | |
tree | c81358ddd8d21636cb1f3ae106c38e09047c9051 /AK/Platform.h | |
parent | 21647b9a4e06ba53823eba65b1e5698fa863c2a9 (diff) | |
download | serenity-d987ddc0ee080e6c047ac8af4199625f417ba346.zip |
AK: Actually don't include <unistd.h> for windows in Platform.h
I got the conditions wrong last time, oops :^)
Diffstat (limited to 'AK/Platform.h')
-rw-r--r-- | AK/Platform.h | 14 |
1 files 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 <unistd.h> -# undef PAGE_SIZE -# define PAGE_SIZE sysconf(_SC_PAGESIZE) -# ifdef AK_OS_MACOS +# endif +# include <unistd.h> +# undef PAGE_SIZE +# define PAGE_SIZE sysconf(_SC_PAGESIZE) +# ifdef AK_OS_MACOS } +# endif # endif #endif |