Commit e95dc99b by Eric Botcazou Committed by Eric Botcazou

gthr-posix.h (__gthread_recursive_mutex_init_function): Guard with #ifdef…

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
parent d1ea4593
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; ...@@ -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) ...@@ -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)
{ {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment