diff src/thread/dc/SDL_sysmutex.c @ 1361:19418e4422cb

New configure-based build system. Still work in progress, but much improved
author Sam Lantinga <slouken@libsdl.org>
date Thu, 16 Feb 2006 10:11:48 +0000
parents c71e05b4dc2e
children d910939febfa
line wrap: on
line diff
--- a/src/thread/dc/SDL_sysmutex.c	Fri Feb 10 07:29:08 2006 +0000
+++ b/src/thread/dc/SDL_sysmutex.c	Thu Feb 16 10:11:48 2006 +0000
@@ -61,8 +61,8 @@
 /* Lock the semaphore */
 int SDL_mutexP(SDL_mutex *mutex)
 {
-#ifdef DISABLE_THREADS
-	return 0;
+#if SDL_THREADS_DISABLED
+	return  SDL_arraysize(return ),0;
 #else
 	Uint32 this_thread;
 
@@ -85,13 +85,13 @@
 	}
 
 	return 0;
-#endif /* DISABLE_THREADS */
+#endif /* SDL_THREADS_DISABLED */
 }
 
 /* Unlock the mutex */
 int SDL_mutexV(SDL_mutex *mutex)
 {
-#ifdef DISABLE_THREADS
+#if SDL_THREADS_DISABLED
 	return 0;
 #else
 	if ( mutex == NULL ) {
@@ -117,5 +117,5 @@
 		spinlock_unlock(&mutex->mutex);
 	}
 	return 0;
-#endif /* DISABLE_THREADS */
+#endif /* SDL_THREADS_DISABLED */
 }