st/vega: Fix breakage from -fvisibility=hidden.
authorChia-I Wu <olvaffe@gmail.com>
Sun, 10 Jan 2010 16:03:21 +0000 (00:03 +0800)
committerKristian Høgsberg <krh@bitplanet.net>
Mon, 11 Jan 2010 15:04:28 +0000 (10:04 -0500)
Mark VG and VGU functions as public.

Signed-off-by: Chia-I Wu <olvaffe@gmail.com>
include/VG/vgplatform.h

index e4f269f6582e8b5c40bf5e8d5be5c4ade04ffaf9..2c626a971e1727b3f0b3a6bf854932a288a24a40 100644 (file)
 extern "C" {\r
 #endif\r
 \r
+#if defined(__GNUC__) && (__GNUC__ * 100 + __GNUC_MINOR__) >= 303\r
+#  define VG_API_CALL __attribute__((visibility("default")))\r
+#  define VGU_API_CALL __attribute__((visibility("default")))\r
+#endif\r
+\r
 #ifndef VG_API_CALL \r
 #if defined(OPENVG_STATIC_LIBRARY)\r
 #      define VG_API_CALL\r