]> git.sesse.net Git - vlc/commitdiff
cpu: fix a typo and cpu detection on Mac OS.
authorPierre d'Herbemont <pdherbemont@free.fr>
Wed, 5 May 2010 09:01:59 +0000 (11:01 +0200)
committerPierre d'Herbemont <pdherbemont@free.fr>
Wed, 5 May 2010 09:33:43 +0000 (11:33 +0200)
src/misc/cpu.c

index 5a6830b239dd75c2f0aaafa4764e3c613f47522c..90228681f7d2c93dd95221ba37b31d0c1c7b0598 100644 (file)
@@ -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))