Added support for querying the number of CPUs available on Linux. This also happens to work on Mac OS X.

This commit is contained in:
Sam Lantinga
2009-12-17 03:04:04 +00:00
parent 61382a9f93
commit 4a157f0629
5 changed files with 15 additions and 4 deletions

View File

@@ -151,6 +151,7 @@
#undef HAVE_SIGACTION
#undef HAVE_SETJMP
#undef HAVE_NANOSLEEP
#undef HAVE_SYSCONF
#undef HAVE_SYSCTLBYNAME
#undef HAVE_CLOCK_GETTIME
#undef HAVE_GETPAGESIZE

View File

@@ -108,6 +108,7 @@ typedef unsigned long uintptr_t;
#define HAVE_SIGACTION 1
#define HAVE_SETJMP 1
#define HAVE_NANOSLEEP 1
#define HAVE_SYSCONF 1
#define HAVE_SYSCTLBYNAME 1
/* enable iPhone version of Core Audio driver */

View File

@@ -106,6 +106,7 @@
#define HAVE_SIGACTION 1
#define HAVE_SETJMP 1
#define HAVE_NANOSLEEP 1
#define HAVE_SYSCONF 1
#define HAVE_SYSCTLBYNAME 1
/* Enable various audio drivers */