summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--include/VG/vgplatform.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/VG/vgplatform.h b/include/VG/vgplatform.h
index e4f269f6582..2c626a971e1 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