mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
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:
parent
b9b3795c3c
commit
c8c961ac81
2 changed files with 5 additions and 1 deletions
|
@ -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 */
|
||||
|
|
|
@ -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__ */
|
||||
|
|
Loading…
Reference in a new issue