From 69eef0a40257b81fc76420580f464d34817765b1 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 2 Nov 2002 02:36:05 +0000 Subject: 2002-11-01 Roland McGrath * shared.c (iohelp_fetch_shared_data, iohelp_put_shared_data): Put __attribute__((weak)) directly in the defns. --- libiohelp/shared.c | 14 +++----------- 1 file changed, 3 insertions(+), 11 deletions(-) diff --git a/libiohelp/shared.c b/libiohelp/shared.c index 42180985..082b526b 100644 --- a/libiohelp/shared.c +++ b/libiohelp/shared.c @@ -1,5 +1,5 @@ /* Default functions - Copyright (C) 1996 Free Software Foundation + Copyright (C) 1996, 2002 Free Software Foundation, Inc. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as @@ -20,22 +20,14 @@ /* These definitions exist to satisfy the linker. */ - -void +void __attribute__ ((weak)) iohelp_fetch_shared_data (void *foo) { abort (); } -void +void __attribute__ ((weak)) iohelp_put_shared_data (void *foo) { abort (); } - - -void -iohelp_fetch_shared_data (void *foo) __attribute__ ((weak)); -void -iohelp_put_shared_data (void *foo) __attribute__ ((weak)); - -- cgit v1.2.3