Commit e621f530 by Jakub Jelinek Committed by Jakub Jelinek

gthr-posix.h (__gthread_active_p): Do not use preprocessor conditionals and…

gthr-posix.h (__gthread_active_p): Do not use preprocessor conditionals and comments inside macro arguments.

	* gthr-posix.h (__gthread_active_p): Do not use preprocessor
	conditionals and comments inside macro arguments.

From-SVN: r178258
parent edf2239b
2011-08-29 Jakub Jelinek <jakub@redhat.com>
* gthr-posix.h (__gthread_active_p): Do not use preprocessor
conditionals and comments inside macro arguments.
20011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com> 20011-08-29 Artjoms Sinkarovs <artyom.shinkaroff@gmail.com>
Richard Guenther <rguenther@suse.de> Richard Guenther <rguenther@suse.de>
* tree.h (constant_boolean_node): Adjust prototype. * tree.h (constant_boolean_node): Adjust prototype.
* fold-const.c (fold_convert_loc): Move aggregate conversion * fold-const.c (fold_convert_loc): Move aggregate conversion
...@@ -244,16 +244,15 @@ __gthread_active_p (void) ...@@ -244,16 +244,15 @@ __gthread_active_p (void)
static inline int static inline int
__gthread_active_p (void) __gthread_active_p (void)
{ {
static void *const __gthread_active_ptr
= __extension__ (void *) &__gthrw_(
/* Android's C library does not provide pthread_cancel, check for /* Android's C library does not provide pthread_cancel, check for
`pthread_create' instead. */ `pthread_create' instead. */
#ifndef __BIONIC__ #ifndef __BIONIC__
pthread_cancel static void *const __gthread_active_ptr
= __extension__ (void *) &__gthrw_(pthread_cancel);
#else #else
pthread_create static void *const __gthread_active_ptr
= __extension__ (void *) &__gthrw_(pthread_create);
#endif #endif
);
return __gthread_active_ptr != 0; return __gthread_active_ptr != 0;
} }
......
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