about summary refs log tree commit diff
path: root/sysdeps/ieee754/ldbl-opt
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2006-01-14 13:03:48 +0000
committerRoland McGrath <roland@gnu.org>2006-01-14 13:03:48 +0000
commit5c9c64088923397e9524c8ef4545ca0dd66a8d5e (patch)
tree21e7d000453e7f7c4492e192c5e214377753313f /sysdeps/ieee754/ldbl-opt
parent1d446ec6446f5ff94a56a5c2a726c7e213099bbd (diff)
downloadglibc-5c9c64088923397e9524c8ef4545ca0dd66a8d5e.tar.gz
glibc-5c9c64088923397e9524c8ef4545ca0dd66a8d5e.tar.xz
glibc-5c9c64088923397e9524c8ef4545ca0dd66a8d5e.zip
* sysdeps/ieee754/ldbl-opt/nldbl-compat.h (NLDBL_DECL): Fix typo.
	(NLDBL_HIDDEN): New macro.
	(NLDBL_DECL): Use it in place of attribute_hidden.
Diffstat (limited to 'sysdeps/ieee754/ldbl-opt')
-rw-r--r--sysdeps/ieee754/ldbl-opt/nldbl-compat.h23
1 files changed, 14 insertions, 9 deletions
diff --git a/sysdeps/ieee754/ldbl-opt/nldbl-compat.h b/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
index 8d74d2f391..80dad04e11 100644
--- a/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
+++ b/sysdeps/ieee754/ldbl-opt/nldbl-compat.h
@@ -32,8 +32,13 @@
 #include <monetary.h>
 #include <sys/syslog.h>
 
+#ifdef SHARED
+# define NLDBL_HIDDEN
+#else
+# define NLDBL_HIDDEN attribute_hidden
+#endif
 #define NLDBL_DECL(name) \
-  extern __typeof (#name) __nldbl_##name attribute_hidden
+  extern __typeof (name) __nldbl_##name NLDBL_HIDDEN
 
 NLDBL_DECL (_IO_vfscanf);
 NLDBL_DECL (vfscanf);
@@ -61,26 +66,26 @@ NLDBL_DECL (qfcvt);
 NLDBL_DECL (qgcvt);
 extern int __nldbl___vfprintf_chk (FILE *__restrict, int,
 				   const char *__restrict, _G_va_list)
-  attribute_hidden;
+  NLDBL_HIDDEN;
 extern int __nldbl___vfwprintf_chk (FILE *__restrict, int,
 				    const wchar_t *__restrict, __gnuc_va_list)
-  attribute_hidden;
+  NLDBL_HIDDEN;
 extern int __nldbl___vsprintf_chk (char *__restrict, int, size_t,
 				   const char *__restrict, _G_va_list) __THROW
-  attribute_hidden;
+  NLDBL_HIDDEN;
 extern int __nldbl___vsnprintf_chk (char *__restrict, size_t, int, size_t,
 				    const char *__restrict, _G_va_list)
-  __THROW attribute_hidden;
+  __THROW NLDBL_HIDDEN;
 extern int __nldbl___vswprintf_chk (wchar_t *__restrict, size_t, int, size_t,
 				    const wchar_t *__restrict, __gnuc_va_list)
-  __THROW attribute_hidden;
+  __THROW NLDBL_HIDDEN;
 extern void __nldbl___vsyslog_chk (int, int, const char *, va_list)
-  attribute_hidden;
+  NLDBL_HIDDEN;
 extern ssize_t __nldbl___vstrfmon (char *, size_t, const char *, va_list)
-  __THROW attribute_hidden;
+  __THROW NLDBL_HIDDEN;
 extern ssize_t  __nldbl___vstrfmon_l (char *, size_t, __locale_t,
 				      const char *, va_list)
-  __THROW attribute_hidden;
+  __THROW NLDBL_HIDDEN;
 
 
 #endif /* __NLDBL_COMPAT_H */