[PATCH 1/1] glxstubs: Don't mix availability types on non-ELF

Jeremy Huddleston Sequoia jeremyhu at apple.com
Fri Nov 29 11:36:56 PST 2013


Signed-off-by: Jeremy Huddleston Sequoia <jeremyhu at apple.com>
---
 glx/glxstubs.c | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)

diff --git a/glx/glxstubs.c b/glx/glxstubs.c
index 69bc004..509f65c 100644
--- a/glx/glxstubs.c
+++ b/glx/glxstubs.c
@@ -33,8 +33,14 @@
 #include <inttypes.h>
 #include "glxserver.h"
 
+#ifdef __ELF__
+#define _THUNK_AVAILABILITY _X_HIDDEN
+#else
+#define _THUNK_AVAILABILITY
+#endif
+
 #define thunk(name, type, call_args, ...) \
-    _X_HIDDEN void name(__VA_ARGS__) { \
+    _THUNK_AVAILABILITY void name(__VA_ARGS__) { \
 	static type proc; \
 	if (!proc) proc = __glGetProcAddress(#name); \
 	proc call_args; \
-- 
1.8.4.3



More information about the xorg-devel mailing list