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:
parent
21647b9a4e
commit
d987ddc0ee
1 changed files with 8 additions and 6 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue