mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 00:47:45 +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
|
# define PAGE_SIZE 4096
|
||||||
// On macOS (at least Mojave), Apple's version of this header is not wrapped
|
// On macOS (at least Mojave), Apple's version of this header is not wrapped
|
||||||
// in extern "C".
|
// in extern "C".
|
||||||
# elif defined(AK_OS_MACOS)
|
# else
|
||||||
|
# if defined(AK_OS_MACOS)
|
||||||
extern "C" {
|
extern "C" {
|
||||||
# endif
|
# endif
|
||||||
# include <unistd.h>
|
# include <unistd.h>
|
||||||
# undef PAGE_SIZE
|
# undef PAGE_SIZE
|
||||||
# define PAGE_SIZE sysconf(_SC_PAGESIZE)
|
# define PAGE_SIZE sysconf(_SC_PAGESIZE)
|
||||||
# ifdef AK_OS_MACOS
|
# ifdef AK_OS_MACOS
|
||||||
}
|
}
|
||||||
|
# endif
|
||||||
# endif
|
# endif
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue