diff options
author | deischen <deischen@FreeBSD.org> | 2001-04-10 04:19:21 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2001-04-10 04:19:21 +0000 |
commit | dd46d4e05f2e301b4d9451bbfabfabbc788975c5 (patch) | |
tree | f253a6d0598ff480596963ca3fcf2b9320aefaee /lib/libkse/thread/thr_rwlock.c | |
parent | 3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (diff) | |
download | FreeBSD-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/libkse/thread/thr_rwlock.c')
-rw-r--r-- | lib/libkse/thread/thr_rwlock.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/lib/libkse/thread/thr_rwlock.c b/lib/libkse/thread/thr_rwlock.c index 9c87e44..25fab59 100644 --- a/lib/libkse/thread/thr_rwlock.c +++ b/lib/libkse/thread/thr_rwlock.c @@ -36,13 +36,13 @@ /* maximum number of times a read lock may be obtained */ #define MAX_READ_LOCKS (INT_MAX - 1) -#pragma weak pthread_rwlock_destroy=_pthread_rwlock_destroy -#pragma weak pthread_rwlock_init=_pthread_rwlock_init -#pragma weak pthread_rwlock_rdlock=_pthread_rwlock_rdlock -#pragma weak pthread_rwlock_tryrdlock=_pthread_rwlock_tryrdlock -#pragma weak pthread_rwlock_trywrlock=_pthread_rwlock_trywrlock -#pragma weak pthread_rwlock_unlock=_pthread_rwlock_unlock -#pragma weak pthread_rwlock_wrlock=_pthread_rwlock_wrlock +__weak_reference(_pthread_rwlock_destroy, pthread_rwlock_destroy); +__weak_reference(_pthread_rwlock_init, pthread_rwlock_init); +__weak_reference(_pthread_rwlock_rdlock, pthread_rwlock_rdlock); +__weak_reference(_pthread_rwlock_tryrdlock, pthread_rwlock_tryrdlock); +__weak_reference(_pthread_rwlock_trywrlock, pthread_rwlock_trywrlock); +__weak_reference(_pthread_rwlock_unlock, pthread_rwlock_unlock); +__weak_reference(_pthread_rwlock_wrlock, pthread_rwlock_wrlock); static int init_static (pthread_rwlock_t *rwlock); |