summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_clean.c
diff options
context:
space:
mode:
authordeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
committerdeischen <deischen@FreeBSD.org>2001-04-10 04:19:21 +0000
commitdd46d4e05f2e301b4d9451bbfabfabbc788975c5 (patch)
treef253a6d0598ff480596963ca3fcf2b9320aefaee /lib/libpthread/thread/thr_clean.c
parent3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (diff)
downloadFreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.zip
FreeBSD-src-dd46d4e05f2e301b4d9451bbfabfabbc788975c5.tar.gz
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions. Suggested by: bde
Diffstat (limited to 'lib/libpthread/thread/thr_clean.c')
-rw-r--r--lib/libpthread/thread/thr_clean.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/libpthread/thread/thr_clean.c b/lib/libpthread/thread/thr_clean.c
index 9ce3fc2..6330cb9 100644
--- a/lib/libpthread/thread/thr_clean.c
+++ b/lib/libpthread/thread/thr_clean.c
@@ -37,8 +37,8 @@
#include <pthread.h>
#include "pthread_private.h"
-#pragma weak pthread_cleanup_push=_pthread_cleanup_push
-#pragma weak pthread_cleanup_pop=_pthread_cleanup_pop
+__weak_reference(_pthread_cleanup_push, pthread_cleanup_push);
+__weak_reference(_pthread_cleanup_pop, pthread_cleanup_pop);
void
_pthread_cleanup_push(void (*routine) (void *), void *routine_arg)
OpenPOWER on IntegriCloud