This is the mail archive of the libc-hacker@sources.redhat.com mailing list for the glibc project.

Note that libc-hacker is a closed list. You may look at the archives of this list, but subscription and posting are not open.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

one more visibility tweak



This fixes:

stdio.c:46: warning: `visibility' attribute directive ignored
stdio.c:47: warning: `visibility' attribute directive ignored
stdio.c:48: warning: `visibility' attribute directive ignored

It also removes duplicated code.

Ok to commit?

Andreas

2002-03-16  Andreas Jaeger  <aj@suse.de>

	* libio/stdio.c: Use INTVARDEF for internal symbols.

============================================================
Index: libio/stdio.c
--- libio/stdio.c	2002/03/13 02:05:39	1.11
+++ libio/stdio.c	2002/03/16 20:08:07
@@ -39,11 +39,7 @@ _IO_FILE *stderr = (FILE *) &_IO_2_1_std
 #undef _IO_stdout
 #undef _IO_stderr
 #ifdef _LIBC
-# define AL(name) AL2 (name, _IO_##name)
-# define AL2(name, al) \
-  extern __typeof (name) al __attribute__ ((alias (#name),		      \
-					    visibility ("hidden")))
-AL(stdin);
-AL(stdout);
-AL(stderr);
+INTVARDEF(stdin);
+INTVARDEF(stdout);
+INTVARDEF(stderr);
 #endif

-- 
 Andreas Jaeger
  SuSE Labs aj@suse.de
   private aj@arthur.inka.de
    http://www.suse.de/~aj


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]