diff options
Diffstat (limited to 'contrib/gcc/gthr-posix.h')
-rw-r--r-- | contrib/gcc/gthr-posix.h | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/contrib/gcc/gthr-posix.h b/contrib/gcc/gthr-posix.h index fe9e584..58bfcb3 100644 --- a/contrib/gcc/gthr-posix.h +++ b/contrib/gcc/gthr-posix.h @@ -77,11 +77,10 @@ typedef pthread_mutex_t __gthread_mutex_t; #pragma weak pthread_setschedparam #endif -static void *__gthread_active_ptr = (void *) &pthread_create; - static inline int __gthread_active_p (void) { + static void *const __gthread_active_ptr = (void *) &pthread_create; return __gthread_active_ptr != 0; } |