From 3c4f2f3db28798206129ecb0f94e4aa3fa0dd106 Mon Sep 17 00:00:00 2001 From: deischen Date: Tue, 10 Apr 2001 04:11:50 +0000 Subject: To be consistent, use the __weak_reference macro from 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 --- lib/libc/stdio/_flock_stub.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/libc/stdio/_flock_stub.c') diff --git a/lib/libc/stdio/_flock_stub.c b/lib/libc/stdio/_flock_stub.c index cc0cffe..2be797a 100644 --- a/lib/libc/stdio/_flock_stub.c +++ b/lib/libc/stdio/_flock_stub.c @@ -53,10 +53,10 @@ /* * Weak symbols for externally visible functions in this file: */ -#pragma weak flockfile=_flockfile -#pragma weak _flockfile_debug=_flockfile_debug_stub -#pragma weak ftrylockfile=_ftrylockfile -#pragma weak funlockfile=_funlockfile +__weak_reference(_flockfile, flockfile); +__weak_reference(_flockfile_debug_stub, _flockfile_debug); +__weak_reference(_ftrylockfile, ftrylockfile); +__weak_reference(_funlockfile, funlockfile); /* * We need to retain binary compatibility for a while. So pretend -- cgit v1.1