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/libc_r/uthread/uthread_mutex.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/libc_r/uthread/uthread_mutex.c')
-rw-r--r-- | lib/libc_r/uthread/uthread_mutex.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/lib/libc_r/uthread/uthread_mutex.c b/lib/libc_r/uthread/uthread_mutex.c index 27377f3..0f67b4b 100644 --- a/lib/libc_r/uthread/uthread_mutex.c +++ b/lib/libc_r/uthread/uthread_mutex.c @@ -79,13 +79,13 @@ static struct pthread_mutex_attr static_mutex_attr = static pthread_mutexattr_t static_mattr = &static_mutex_attr; /* Single underscore versions provided for libc internal usage: */ -#pragma weak pthread_mutex_trylock=__pthread_mutex_trylock -#pragma weak pthread_mutex_lock=__pthread_mutex_lock +__weak_reference(__pthread_mutex_trylock, pthread_mutex_trylock); +__weak_reference(__pthread_mutex_lock, pthread_mutex_lock); /* No difference between libc and application usage of these: */ -#pragma weak pthread_mutex_init=_pthread_mutex_init -#pragma weak pthread_mutex_destroy=_pthread_mutex_destroy -#pragma weak pthread_mutex_unlock=_pthread_mutex_unlock +__weak_reference(_pthread_mutex_init, pthread_mutex_init); +__weak_reference(_pthread_mutex_destroy, pthread_mutex_destroy); +__weak_reference(_pthread_mutex_unlock, pthread_mutex_unlock); /* Reinitialize a mutex to defaults. */ |