aboutsummaryrefslogtreecommitdiff
path: root/libio/libioP.h
diff options
context:
space:
mode:
Diffstat (limited to 'libio/libioP.h')
-rw-r--r--libio/libioP.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/libio/libioP.h b/libio/libioP.h
index 1e3d28b..6508e46 100644
--- a/libio/libioP.h
+++ b/libio/libioP.h
@@ -535,7 +535,8 @@ extern const struct _IO_jump_t __io_vtables[] attribute_hidden;
#ifdef SHARED
# define libio_static_fn_required(name)
#else
-# define libio_static_fn_required(name) __asm (".globl " #name);
+# define libio_static_fn_required(name) \
+ static __typeof (name) *const name##_p __attribute__((used)) = name;
#endif
extern int _IO_do_write (FILE *, const char *, size_t);