1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-26 03:57:44 +00:00

AK: Actually don't include <unistd.h> for windows in Platform.h

I got the conditions wrong last time, oops :^)
This commit is contained in:
Ali Mohammad Pur 2022-12-12 19:57:01 +03:30 committed by Linus Groh
parent 21647b9a4e
commit d987ddc0ee

View file

@ -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