gstconfig.h: adds and uses SunPro visibility attribute for proper function exports

Define GST_EXPORT for SunPro.

https://bugzilla.gnome.org/show_bug.cgi?id=667289
This commit is contained in:
Idar Tollefsen 2012-01-01 16:46:04 +01:00 committed by Tim-Philipp Müller
parent b9b3795c3c
commit c8c961ac81
2 changed files with 5 additions and 1 deletions

View file

@ -141,7 +141,7 @@ gint priv_gst_date_time_compare (gconstpointer dt1, gconstpointer dt2);
#ifndef GST_DISABLE_REGISTRY
/* Secret variable to initialise gst without registry cache */
extern gboolean _gst_disable_registry_cache;
GST_EXPORT gboolean _gst_disable_registry_cache;
#endif
/* provide inline gst_g_value_get_foo_unchecked(), used in gststructure.c */

View file

@ -229,7 +229,11 @@
#endif
#else /* not _MSC_VER */
#define GST_PLUGIN_EXPORT
#if (defined(__SUNPRO_C) && (__SUNPRO_C >= 0x590))
#define GST_EXPORT extern __attribute__ ((visibility ("default")))
#else
#define GST_EXPORT extern
#endif
#endif
#endif /* __GST_CONFIG_H__ */