summaryrefslogtreecommitdiffstats
path: root/lib/libpthread/thread/thr_spec.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_spec.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_spec.c')
-rw-r--r--lib/libpthread/thread/thr_spec.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/libpthread/thread/thr_spec.c b/lib/libpthread/thread/thr_spec.c
index 783617f..2b359c8 100644
--- a/lib/libpthread/thread/thr_spec.c
+++ b/lib/libpthread/thread/thr_spec.c
@@ -41,10 +41,10 @@
/* Static variables: */
static struct pthread_key key_table[PTHREAD_KEYS_MAX];
-#pragma weak pthread_key_create=_pthread_key_create
-#pragma weak pthread_key_delete=_pthread_key_delete
-#pragma weak pthread_getspecific=_pthread_getspecific
-#pragma weak pthread_setspecific=_pthread_setspecific
+__weak_reference(_pthread_key_create, pthread_key_create);
+__weak_reference(_pthread_key_delete, pthread_key_delete);
+__weak_reference(_pthread_getspecific, pthread_getspecific);
+__weak_reference(_pthread_setspecific, pthread_setspecific);
int
OpenPOWER on IntegriCloud