Mesa (master): st/vega: Fix breakage from -fvisibility=hidden.

Kristian Høgsberg krh at kemper.freedesktop.org
Mon Jan 11 15:09:48 UTC 2010


Module: Mesa
Branch: master
Commit: 5ec99c04a99fc67ae460d0cccbe1cbf5c2aaab1b
URL:    http://cgit.freedesktop.org/mesa/mesa/commit/?id=5ec99c04a99fc67ae460d0cccbe1cbf5c2aaab1b

Author: Chia-I Wu <olvaffe at gmail.com>
Date:   Mon Jan 11 00:03:21 2010 +0800

st/vega: Fix breakage from -fvisibility=hidden.

Mark VG and VGU functions as public.

Signed-off-by: Chia-I Wu <olvaffe at gmail.com>

---

 include/VG/vgplatform.h |    5 +++++
 1 files changed, 5 insertions(+), 0 deletions(-)

diff --git a/include/VG/vgplatform.h b/include/VG/vgplatform.h
index e4f269f..2c626a9 100644
--- a/include/VG/vgplatform.h
+++ b/include/VG/vgplatform.h
@@ -38,6 +38,11 @@
 extern "C" {
 #endif
 
+#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303
+#  define VG_API_CALL __attribute__((visibility("default")))
+#  define VGU_API_CALL __attribute__((visibility("default")))
+#endif
+
 #ifndef VG_API_CALL 
 #if defined(OPENVG_STATIC_LIBRARY)
 #	define VG_API_CALL




More information about the mesa-commit mailing list