Commit f5fa2384 by Loren J. Rittle Committed by Loren J. Rittle

gthr-posix.h (__gthread_active_ptr): Cast function pointer to target type to…

gthr-posix.h (__gthread_active_ptr): Cast function pointer to target type to allow ISO C++ compiler to accept it.

	* gthr-posix.h (__gthread_active_ptr): Cast function pointer
	to target type to allow ISO C++ compiler to accept it.
	* gthr-dce.h (__gthread_active_ptr): Likewise.
	* gthr-solaris.h (__gthread_active_ptr): Likewise.

Co-Authored-By: John David Anglin <dave@hiauly1.hia.nrc.ca>

From-SVN: r42725
parent 462b7396
2001-05-30 Loren J. Rittle <ljrittle@acm.org>
John David Anglin <dave@hiauly1.hia.nrc.ca>
* gthr-posix.h (__gthread_active_ptr): Cast function pointer
to target type to allow ISO C++ compiler to accept it.
* gthr-dce.h (__gthread_active_ptr): Likewise.
* gthr-solaris.h (__gthread_active_ptr): Likewise.
2001-05-30 Neil Booth <neil@daikokuya.demon.co.uk>
* cpplex.c (_cpp_lex_token): Revert patch of 16 May 2001
......
......@@ -79,7 +79,7 @@ typedef pthread_mutex_t __gthread_mutex_t;
#pragma weak pthread_yield
#endif
static void *__gthread_active_ptr = &pthread_create;
static void *__gthread_active_ptr = (void *) &pthread_create;
static inline int
__gthread_active_p (void)
......
......@@ -75,7 +75,7 @@ typedef pthread_mutex_t __gthread_mutex_t;
#pragma weak pthread_setschedparam
#endif
static void *__gthread_active_ptr = &pthread_create;
static void *__gthread_active_ptr = (void *) &pthread_create;
static inline int
__gthread_active_p (void)
......
......@@ -81,7 +81,7 @@ typedef mutex_t __gthread_mutex_t;
/* This will not actually work in Solaris 2.5, since libc contains
dummy symbols of all thr_* routines. */
static void *__gthread_active_ptr = &thr_create;
static void *__gthread_active_ptr = (void *) &thr_create;
static inline int
__gthread_active_p (void)
......
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