From: Pierre d'Herbemont Date: Wed, 5 May 2010 09:01:59 +0000 (+0200) Subject: cpu: fix a typo and cpu detection on Mac OS. X-Git-Tag: 1.2.0-pre1~6756 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=188599631a113eece314d79b896e93952cc4fdbc;p=vlc cpu: fix a typo and cpu detection on Mac OS. --- 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))