diff src/cpuinfo/SDL_cpuinfo.c @ 5122:b3f075368b1f

Added API function to get CPU cache line size.
author Sam Lantinga <slouken@libsdl.org>
date Thu, 27 Jan 2011 20:46:45 -0800
parents 427998ff3bcf
children 6a65c1fc07af
line wrap: on
line diff
--- a/src/cpuinfo/SDL_cpuinfo.c	Thu Jan 27 20:37:54 2011 -0800
+++ b/src/cpuinfo/SDL_cpuinfo.c	Thu Jan 27 20:46:45 2011 -0800
@@ -304,7 +304,7 @@
 static int SDL_CPUCount = 0;
 
 int
-SDL_GetCPUCount()
+SDL_GetCPUCount(void)
 {
     if (!SDL_CPUCount) {
 #if defined(HAVE_SYSCONF) && defined(_SC_NPROCESSORS_ONLN)
@@ -335,7 +335,7 @@
 
 /* Oh, such a sweet sweet trick, just not very useful. :) */
 static const char *
-SDL_GetCPUType()
+SDL_GetCPUType(void)
 {
     static char SDL_CPUType[13];
 
@@ -366,7 +366,7 @@
 }
 
 static const char *
-SDL_GetCPUName()
+SDL_GetCPUName(void)
 {
     static char SDL_CPUName[48];
 
@@ -437,8 +437,8 @@
     return SDL_CPUName;
 }
 
-static int
-SDL_GetCPUCacheLineSize()
+int
+SDL_GetCPUCacheLineSize(void)
 {
     const char *cpuType = SDL_GetCPUType();