diff src/thread/generic/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/generic/SDL_sysmutex.c	Fri Feb 10 07:29:08 2006 +0000
+++ b/src/thread/generic/SDL_sysmutex.c	Thu Feb 16 10:11:48 2006 +0000
@@ -68,7 +68,7 @@
 /* Lock the semaphore */
 int SDL_mutexP(SDL_mutex *mutex)
 {
-#ifdef DISABLE_THREADS
+#if SDL_THREADS_DISABLED
 	return 0;
 #else
 	Uint32 this_thread;
@@ -92,13 +92,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 ) {
@@ -124,5 +124,5 @@
 		SDL_SemPost(mutex->sem);
 	}
 	return 0;
-#endif /* DISABLE_THREADS */
+#endif /* SDL_THREADS_DISABLED */
 }