summaryrefslogtreecommitdiffstats
path: root/src/egl/main/eglcompiler.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 /src/egl/main/eglcompiler.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 'src/egl/main/eglcompiler.h')
-rw-r--r--src/egl/main/eglcompiler.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/src/egl/main/eglcompiler.h b/src/egl/main/eglcompiler.h
index 6b639b75c66..f7c93f14ce2 100644
--- a/src/egl/main/eglcompiler.h
+++ b/src/egl/main/eglcompiler.h
@@ -61,4 +61,14 @@
#endif
+/**
+ * Function visibility
+ */
+#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
+# define PUBLIC __attribute__((visibility("default")))
+#else
+# define PUBLIC
+#endif
+
+
#endif /* EGLCOMPILER_INCLUDED */