[vlc-commits] commit: cpu: fix a typo and cpu detection on Mac OS. (Pierre d'Herbemont )

git at videolan.org git at videolan.org
Wed May 5 11:33:43 CEST 2010


vlc | branch: master | Pierre d'Herbemont <pdherbemont at free.fr> | Wed May  5 11:01:59 2010 +0200| [188599631a113eece314d79b896e93952cc4fdbc] | committer: Pierre d'Herbemont 

cpu: fix a typo and cpu detection on Mac OS.

> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=188599631a113eece314d79b896e93952cc4fdbc
---

 src/misc/cpu.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/src/misc/cpu.c b/src/misc/cpu.c
index 5a6830b..9022868 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))



More information about the vlc-commits mailing list