mirror of git://gcc.gnu.org/git/gcc.git
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:
parent
d1ea459307
commit
e95dc99b7b
|
@ -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>
|
2004-10-28 Daniel Berlin <dberlin@dberlin.org>
|
||||||
|
|
||||||
* tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
|
* tree-into-ssa.c (rewrite_virtual_phi_arguments): New function.
|
||||||
|
|
|
@ -54,8 +54,10 @@ typedef pthread_mutex_t __gthread_recursive_mutex_t;
|
||||||
#define __GTHREAD_RECURSIVE_MUTEX_INIT PTHREAD_RECURSIVE_MUTEX_INITIALIZER
|
#define __GTHREAD_RECURSIVE_MUTEX_INIT PTHREAD_RECURSIVE_MUTEX_INITIALIZER
|
||||||
#elif defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
|
#elif defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP)
|
||||||
#define __GTHREAD_RECURSIVE_MUTEX_INIT 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
|
#define __GTHREAD_RECURSIVE_MUTEX_INIT_FUNCTION __gthread_recursive_mutex_init_function
|
||||||
|
#else
|
||||||
|
#define __GTHREAD_RECURSIVE_MUTEX_INIT RECURSIVE_ERRORCHECKMUTEX
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#if SUPPORTS_WEAK && GTHREAD_USE_WEAK
|
#if SUPPORTS_WEAK && GTHREAD_USE_WEAK
|
||||||
|
@ -529,7 +531,7 @@ __gthread_mutex_unlock (__gthread_mutex_t *mutex)
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
#ifndef PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP
|
#if !defined(PTHREAD_RECURSIVE_MUTEX_INITIALIZER_NP) && defined(PTHREAD_MUTEX_RECURSIVE)
|
||||||
static inline int
|
static inline int
|
||||||
__gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex)
|
__gthread_recursive_mutex_init_function (__gthread_recursive_mutex_t *mutex)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in New Issue