From dd46d4e05f2e301b4d9451bbfabfabbc788975c5 Mon Sep 17 00:00:00 2001 From: deischen Date: Tue, 10 Apr 2001 04:19:21 +0000 Subject: To be consistent, use the __weak_reference macro from instead of #pragma weak to create weak definitions. Suggested by: bde --- lib/libc_r/uthread/uthread_cancel.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc_r/uthread/uthread_cancel.c') diff --git a/lib/libc_r/uthread/uthread_cancel.c b/lib/libc_r/uthread/uthread_cancel.c index 55f94fb..8b9132c 100644 --- a/lib/libc_r/uthread/uthread_cancel.c +++ b/lib/libc_r/uthread/uthread_cancel.c @@ -8,10 +8,10 @@ static void finish_cancellation(void *arg); -#pragma weak pthread_cancel=_pthread_cancel -#pragma weak pthread_setcancelstate=_pthread_setcancelstate -#pragma weak pthread_setcanceltype=_pthread_setcanceltype -#pragma weak pthread_testcancel=_pthread_testcancel +__weak_reference(_pthread_cancel, pthread_cancel); +__weak_reference(_pthread_setcancelstate, pthread_setcancelstate); +__weak_reference(_pthread_setcanceltype, pthread_setcanceltype); +__weak_reference(_pthread_testcancel, pthread_testcancel); int _pthread_cancel(pthread_t pthread) -- cgit v1.1