forked from pool/libedit
23 lines
686 B
Diff
23 lines
686 B
Diff
|
Index: libedit-20110802-3.0/src/sys.h
|
||
|
===================================================================
|
||
|
--- libedit-20110802-3.0.orig/src/sys.h
|
||
|
+++ libedit-20110802-3.0/src/sys.h
|
||
|
@@ -63,7 +63,7 @@
|
||
|
#endif
|
||
|
|
||
|
#ifndef public
|
||
|
-# define public /* Externally visible functions/variables */
|
||
|
+# define public __attribute__ ((visibility ("default"))) /* Externally visible functions/variables */
|
||
|
#endif
|
||
|
|
||
|
#ifndef private
|
||
|
@@ -71,7 +71,7 @@
|
||
|
#endif
|
||
|
|
||
|
#ifndef protected
|
||
|
-# define protected /* Redefined from elsewhere to "static" */
|
||
|
+# define protected __attribute__ ((visibility ("hidden"))) /* Redefined from elsewhere to "static" */
|
||
|
/* When we want to hide everything */
|
||
|
#endif
|
||
|
|