File libedit-visibility.patch of Package libedit (Revision 11ef12fbba72eebeb4274402281243b6)
Currently displaying revision 11ef12fbba72eebeb4274402281243b6 , Show latest
xxxxxxxxxx
1
Index: libedit-20110802-3.0/src/sys.h
2
===================================================================
3
--- libedit-20110802-3.0.orig/src/sys.h
4
+++ libedit-20110802-3.0/src/sys.h
5
6
#endif
7
8
#ifndef public
9
-# define public /* Externally visible functions/variables */
10
+# define public __attribute__ ((visibility ("default"))) /* Externally visible functions/variables */
11
#endif
12
13
#ifndef private
14
15
#endif
16
17
#ifndef protected
18
-# define protected /* Redefined from elsewhere to "static" */
19
+# define protected __attribute__ ((visibility ("hidden"))) /* Redefined from elsewhere to "static" */
20
/* When we want to hide everything */
21
#endif
22
23