summaryrefslogtreecommitdiffstats
path: root/include/EGL/eglplatform.h
diff options
context:
space:
mode:
authorChia-I Wu <[email protected]>2010-01-05 21:39:15 +0800
committerKristian Høgsberg <[email protected]>2010-01-05 11:23:52 -0500
commit897cb8950ae14ffe7029b1daf16113ff62ce0dfe (patch)
tree66ff5c71cef8d5dcdfdacec5d69b5f52b8cb2fa9 /include/EGL/eglplatform.h
parentae44b92f61b78c9991060a8dd7fa7327d428c138 (diff)
egl: Fix breakage from -fvisibility=hidden.
Mark EGL API and driver functions as PUBLIC. Signed-off-by: Chia-I Wu <[email protected]>
Diffstat (limited to 'include/EGL/eglplatform.h')
-rw-r--r--include/EGL/eglplatform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/EGL/eglplatform.h b/include/EGL/eglplatform.h
index 9e83b600035..09abb5d844a 100644
--- a/include/EGL/eglplatform.h
+++ b/include/EGL/eglplatform.h
@@ -18,6 +18,11 @@
#include <stdint.h>
#endif
+#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
+# define EGLAPI __attribute__((visibility("default")))
+# define EGLAPIENTRY
+#endif
+
/* Macros used in EGL function prototype declarations.
*
* EGLAPI return-type EGLAPIENTRY eglFunction(arguments);