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/sys/__error.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/sys/__error.c')
-rw-r--r-- | lib/libc/sys/__error.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/libc/sys/__error.c b/lib/libc/sys/__error.c index 8c14b0f..3641e77 100644 --- a/lib/libc/sys/__error.c +++ b/lib/libc/sys/__error.c @@ -40,7 +40,7 @@ extern int errno; * Declare a weak reference in case the application is not linked * with libpthread. */ -#pragma weak __error=__error_unthreaded +__weak_reference(__error_unthreaded, __error); int * __error_unthreaded() |