From d1e51320605493252494f43a62e6048b5b9c6b26 Mon Sep 17 00:00:00 2001 From: "Kaveh R. Ghazi" Date: Sat, 12 Feb 2000 19:19:01 +0000 Subject: crtstuff.c (__do_global_ctors_aux, [...]): Add prototype argument. * crtstuff.c (__do_global_ctors_aux, __reg_frame_ctor, __dereg_frame_dtor): Add prototype argument. * gthr-dce.h (__gthread_active_p, __gthread_once): Likewise. * gthr-posix.h (__gthread_active_p, __gthread_once): Likewise. * gthr-solaris.h (__gthread_active_p, __gthread_once): Likewise. * gthr-vxworks.h (__gthread_once): Likewise. * gthr-win32.h (__gthread_active_p, __gthread_once): Likewise. From-SVN: r31945 --- gcc/gthr-posix.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gcc/gthr-posix.h') diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h index 5f197aa..f420e5f 100644 --- a/gcc/gthr-posix.h +++ b/gcc/gthr-posix.h @@ -59,7 +59,7 @@ typedef pthread_mutex_t __gthread_mutex_t; static void *__gthread_active_ptr = &pthread_create; static inline int -__gthread_active_p () +__gthread_active_p (void) { return __gthread_active_ptr != 0; } @@ -67,7 +67,7 @@ __gthread_active_p () #else /* not SUPPORTS_WEAK */ static inline int -__gthread_active_p () +__gthread_active_p (void) { return 1; } @@ -75,7 +75,7 @@ __gthread_active_p () #endif /* SUPPORTS_WEAK */ static inline int -__gthread_once (__gthread_once_t *once, void (*func) ()) +__gthread_once (__gthread_once_t *once, void (*func) (void)) { if (__gthread_active_p ()) return pthread_once (once, func); -- cgit v1.1