gthr-posix.h (__gthread_recursive_mutex_init_function): Guard with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.

* gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
	with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.

From-SVN: r89805
This commit is contained in:
Eric Botcazou 2004-10-29 06:23:18 +02:00 committed by Eric Botcazou
parent d1ea459307
commit e95dc99b7b
2 changed files with 9 additions and 2 deletions

View File

@ -1,3 +1,8 @@
2004-10-29 Eric Botcazou <ebotcazou@libertysurf.fr>
* gthr-posix.h (__gthread_recursive_mutex_init_function): Guard
with #ifdef PTHREAD_MUTEX_RECURSIVE/#endif pairs.
2004-10-28 Daniel Berlin <dberlin@dberlin.org>
* tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.

View File

@ -54,8 +54,10 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t;
#define __GTHREAD_RECURSIVE_MUTEX_INIT PTHREAD_RECURSIVE_MUTEX_INITIALIZER
#elif defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
#define __GTHREAD_RECURSIVE_MUTEX_INIT PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
#else
#elif defined(PTHREAD_MUTEX_RECURSIVE)
#define __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION __gthread_recursive_mutex_init_function
#else
#define __GTHREAD_RECURSIVE_MUTEX_INIT RECURSIVE_ERRORCHECKMUTEX
#endif
#if SUPPORTS_WEAK && GTHREAD_USE_WEAK
@ -529,7 +531,7 @@ __gthread_mutex_unlock (__gthread_mutex_t *mutex)
return 0;
}
#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
#if !defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) && defined(PTHREAD_MUTEX_RECURSIVE)
static inline int
__gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex)
{