Just modified the macro so that iPhone will use the Mac OS X code here gsoc2008_iphone
authorHolmes Futrell <hfutrell@umail.ucsb.edu>
Fri, 11 Jul 2008 00:35:04 +0000
branchgsoc2008_iphone
changeset 2343 375f9132da7f
parent 2342 976898ed43e1
child 2344 b875c80cd927
Just modified the macro so that iPhone will use the Mac OS X code here
src/thread/pthread/SDL_syssem.c
--- a/src/thread/pthread/SDL_syssem.c	Fri Jul 11 00:32:38 2008 +0000
+++ b/src/thread/pthread/SDL_syssem.c	Fri Jul 11 00:35:04 2008 +0000
@@ -29,7 +29,7 @@
 
 /* Wrapper around POSIX 1003.1b semaphores */
 
-#ifdef __MACOSX__
+#if defined(__MACOSX__) || defined(__IPHONEOS__)
 /* Mac OS X doesn't support sem_getvalue() as of version 10.4 */
 #include "../generic/SDL_syssem.c"
 #else