diff options
author | deischen <deischen@FreeBSD.org> | 2001-04-10 04:11:50 +0000 |
---|---|---|
committer | deischen <deischen@FreeBSD.org> | 2001-04-10 04:11:50 +0000 |
commit | 3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 (patch) | |
tree | 2b932f3e877b99e65db8b74c4098b7e9dbb1d7e8 /lib/libc/gen/_thread_init.c | |
parent | 9afc57514e4beba89a3e84ca17a0f1875a536dd5 (diff) | |
download | FreeBSD-src-3c4f2f3db28798206129ecb0f94e4aa3fa0dd106.zip FreeBSD-src-3c4f2f3db28798206129ecb0f94e4aa3fa0dd106.tar.gz |
To be consistent, use the __weak_reference macro from <sys/cdefs.h>
instead of #pragma weak to create weak definitions. This macro is
improperly named, though, since a weak definition is not the same
thing as a weak reference.
Suggested by: bde
Diffstat (limited to 'lib/libc/gen/_thread_init.c')
-rw-r--r-- | lib/libc/gen/_thread_init.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/libc/gen/_thread_init.c b/lib/libc/gen/_thread_init.c index d6be5f2..1d2f15a 100644 --- a/lib/libc/gen/_thread_init.c +++ b/lib/libc/gen/_thread_init.c @@ -26,8 +26,10 @@ * $FreeBSD$ */ -#pragma weak _thread_init=_thread_init_stub -#pragma weak _thread_autoinit_dummy_decl=_thread_autoinit_dummy_decl_stub +#include <sys/types.h> + +__weak_reference(_thread_init_stub, _thread_init); +__weak_reference(_thread_autoinit_dummy_decl_stub, _thread_autoinit_dummy_decl); int _thread_autoinit_dummy_decl_stub = 0; |