summaryrefslogtreecommitdiff
path: root/include/X11
diff options
context:
space:
mode:
authorAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-05 17:35:55 -0700
committerAlan Coopersmith <alan.coopersmith@oracle.com>2023-09-05 17:45:43 -0700
commit7f60f3428aa21d5d643eb75bfd9417cfabf48970 (patch)
tree57a8de98ab7e41bbe17950658eaab25438ef32c1 /include/X11
parent2695ccda5df58af60ebb15bb17f1570437554adb (diff)
Explicitly mark non-static symbols as export or hidden
Hides private API from external linkage Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com>
Diffstat (limited to 'include/X11')
-rw-r--r--include/X11/xpm.h8
1 files changed, 7 insertions, 1 deletions
diff --git a/include/X11/xpm.h b/include/X11/xpm.h
index f108f1f..a490b52 100644
--- a/include/X11/xpm.h
+++ b/include/X11/xpm.h
@@ -73,6 +73,7 @@
# ifdef AMIGA
# include "amigax.h"
# else /* not AMIGA */
+# include <X11/Xfuncproto.h>
# include <X11/Xlib.h>
# include <X11/Xutil.h>
# endif /* not AMIGA */
@@ -275,7 +276,12 @@ typedef struct {
/* macros for forward declarations of functions with prototypes */
-#define FUNC(f, t, p) extern t f p
+#ifndef _X_EXPORT
+# define _X_EXPORT
+# define _X_HIDDEN
+#endif
+#define FUNC(f, t, p) extern _X_EXPORT t f p
+#define HFUNC(f, t, p) extern _X_HIDDEN t f p
#define LFUNC(f, t, p) static t f p