summaryrefslogtreecommitdiff
path: root/libiohelp
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-11-02 02:36:05 +0000
committerRoland McGrath <roland@gnu.org>2002-11-02 02:36:05 +0000
commit69eef0a40257b81fc76420580f464d34817765b1 (patch)
tree87ddc166de65c2953328a923f1dc9011913839e5 /libiohelp
parent18a323d8a776475cb9e2a583b14809cc272d27e7 (diff)
2002-11-01 Roland McGrath <roland@frob.com>
* shared.c (iohelp_fetch_shared_data, iohelp_put_shared_data): Put __attribute__((weak)) directly in the defns.
Diffstat (limited to 'libiohelp')
-rw-r--r--libiohelp/shared.c14
1 files 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));
-