Fixed compiling on Mac OS X, added a system RAM test
This commit is contained in:
parent
73ef0c776e
commit
308e51f9a2
2 changed files with 2 additions and 1 deletions
|
@ -621,7 +621,7 @@ SDL_GetSystemRAM(void)
|
|||
#ifdef HAVE_SYSCTLBYNAME
|
||||
if (SDL_SystemRAM <= 0) {
|
||||
int mib[2] = {CTL_HW, HW_MEMSIZE};
|
||||
uint64 memsize = 0;
|
||||
Uint64 memsize = 0;
|
||||
size_t len = sizeof(memsize);
|
||||
|
||||
if (sysctl(mib, 2, &memsize, &len, NULL, 0) == 0) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue