Skip to content

Commit

Permalink
Fixed compiling on Mac OS X, added a system RAM test
Browse files Browse the repository at this point in the history
  • Loading branch information
slouken committed Oct 17, 2013
1 parent 852004a commit 2e6b4b9
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion src/cpuinfo/SDL_cpuinfo.c
Expand Up @@ -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) {
Expand Down
1 change: 1 addition & 0 deletions test/testplatform.c
Expand Up @@ -153,6 +153,7 @@ TestCPUInfo(SDL_bool verbose)
SDL_Log("SSE3 %s\n", SDL_HasSSE3()? "detected" : "not detected");
SDL_Log("SSE4.1 %s\n", SDL_HasSSE41()? "detected" : "not detected");
SDL_Log("SSE4.2 %s\n", SDL_HasSSE42()? "detected" : "not detected");
SDL_Log("System RAM %d MB\n", SDL_GetSystemRAM());
}
return (0);
}
Expand Down

0 comments on commit 2e6b4b9

Please sign in to comment.