From 188599631a113eece314d79b896e93952cc4fdbc Mon Sep 17 00:00:00 2001 From: Pierre d'Herbemont Date: Wed, 5 May 2010 11:01:59 +0200 Subject: [PATCH] cpu: fix a typo and cpu detection on Mac OS. --- src/misc/cpu.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/misc/cpu.c b/src/misc/cpu.c index 5a6830b239..90228681f7 100644 --- a/src/misc/cpu.c +++ b/src/misc/cpu.c @@ -344,7 +344,7 @@ unsigned vlc_GetCPUCount(void) for (unsigned i = 0; i < CPU_SETSIZE; i++) count += CPU_ISSET(i, &cpu) != 0; return count; -#elif defined(__APPLE_) +#elif defined(__APPLE__) int count; size_t size = sizeof(count) ; if (sysctlbyname("hw.ncpu", &count, &size, NULL, 0)) -- 2.39.2