SDL_GetProcessorCount patch

Here is a patch against SDL 1.2.11 that adds an API call
SDL_GetProcessorCount(), and does just that. It returns the number of
processors detected in the system, or 1 if there was an error or the
platform isn’t supported. Currently, it only supports Win32 or POSIX
systems using the sysconf call if _SC_NPROCESSORS_ONLN is defined
(Linux, *BSD, Solaris, MacOS X). That should well cover most of us :)–
Shawn Kirst

-------------- next part --------------
A non-text attachment was scrubbed…
Name: SDL-1.2.11-get_processor_count.patch
Type: text/x-patch
Size: 1970 bytes
Desc: not available