mirror of
https://github.com/pineappleEA/pineapple-src.git
synced 2024-11-29 18:28:26 -05:00
19 lines
253 B
C
19 lines
253 B
C
|
/* $OpenBSD$ */
|
||
|
|
||
|
#include <unistd.h>
|
||
|
|
||
|
#ifdef _WIN32
|
||
|
#include <windows.h>
|
||
|
#endif
|
||
|
|
||
|
int
|
||
|
getpagesize(void) {
|
||
|
#ifdef _WIN32
|
||
|
SYSTEM_INFO system_info;
|
||
|
GetSystemInfo(&system_info);
|
||
|
return system_info.dwPageSize;
|
||
|
#else
|
||
|
return sysconf(_SC_PAGESIZE);
|
||
|
#endif
|
||
|
}
|