summaryrefslogtreecommitdiff
path: root/gcc/gthr-posix.h
diff options
context:
space:
mode:
authorghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-12 19:19:01 +0000
committerghazi <ghazi@138bc75d-0d04-0410-961f-82ee72b054a4>2000-02-12 19:19:01 +0000
commit205b5771ac9338ca79b9191c4e57de74e05ef028 (patch)
treebb69efaa2a8d376889e6ca501bfc5aafd4d9c33a /gcc/gthr-posix.h
parent45ba0d623ad80a0698f3693f2bac8edb8ed1dbbd (diff)
downloadgcc-205b5771ac9338ca79b9191c4e57de74e05ef028.tar.gz
* 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. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@31945 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'gcc/gthr-posix.h')
-rw-r--r--gcc/gthr-posix.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/gcc/gthr-posix.h b/gcc/gthr-posix.h
index 5f197aa521c..f420e5f8be5 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);