mirror of
https://github.com/encounter/SDL.git
synced 2025-06-16 19:43:47 +00:00
Fix compilation of cpuinfo module (#41)
This commit is contained in:
parent
16431f9db0
commit
088d2b287e
@ -894,7 +894,7 @@ SDL_GetSystemRAM(void)
|
|||||||
#endif
|
#endif
|
||||||
#ifdef HAVE_SYSCTLBYNAME
|
#ifdef HAVE_SYSCTLBYNAME
|
||||||
if (SDL_SystemRAM <= 0) {
|
if (SDL_SystemRAM <= 0) {
|
||||||
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__)
|
#if defined(__FreeBSD__) || defined(__FreeBSD_kernel__) || defined(__NetBSD__) || defined(__DragonFly__) || defined(__SWITCH__)
|
||||||
#ifdef HW_REALMEM
|
#ifdef HW_REALMEM
|
||||||
int mib[2] = {CTL_HW, HW_REALMEM};
|
int mib[2] = {CTL_HW, HW_REALMEM};
|
||||||
#else
|
#else
|
||||||
|
Loading…
x
Reference in New Issue
Block a user