From efdd0a2a82dbb0d876ba3598cb71b96d72520074 Mon Sep 17 00:00:00 2001 From: Matej Knopp Date: Fri, 16 Dec 2011 02:20:27 +0100 Subject: [PATCH] win32: fix exported variables for VS 2010 https://bugzilla.gnome.org/show_bug.cgi?id=666219 --- gst/gstbuffer.h | 2 +- gst/gstbufferlist.h | 2 +- gst/gstcaps.h | 6 +++--- gst/gstevent.h | 2 +- gst/gstinfo.h | 2 +- gst/gstmemory.h | 2 +- gst/gstsample.h | 2 +- gst/gststructure.h | 2 +- gst/gsttrace.h | 4 ++-- 9 files changed, 12 insertions(+), 12 deletions(-) diff --git a/gst/gstbuffer.h b/gst/gstbuffer.h index 2868aed093..9c9363f68c 100644 --- a/gst/gstbuffer.h +++ b/gst/gstbuffer.h @@ -30,7 +30,7 @@ G_BEGIN_DECLS -extern GType _gst_buffer_type; +GST_EXPORT GType _gst_buffer_type; typedef struct _GstBuffer GstBuffer; typedef struct _GstBufferPool GstBufferPool; diff --git a/gst/gstbufferlist.h b/gst/gstbufferlist.h index 3aed60b9d0..4b0dfeb56c 100644 --- a/gst/gstbufferlist.h +++ b/gst/gstbufferlist.h @@ -27,7 +27,7 @@ G_BEGIN_DECLS -extern GType _gst_buffer_list_type; +GST_EXPORT GType _gst_buffer_list_type; #define GST_TYPE_BUFFER_LIST (_gst_buffer_list_type) #define GST_IS_BUFFER_LIST(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_BUFFER_LIST)) diff --git a/gst/gstcaps.h b/gst/gstcaps.h index a08be07960..320471662e 100644 --- a/gst/gstcaps.h +++ b/gst/gstcaps.h @@ -27,7 +27,7 @@ G_BEGIN_DECLS -extern GType _gst_caps_type; +GST_EXPORT GType _gst_caps_type; #define GST_TYPE_CAPS (_gst_caps_type) #define GST_IS_CAPS(obj) (GST_IS_MINI_OBJECT_TYPE((obj), GST_TYPE_CAPS)) @@ -138,8 +138,8 @@ typedef enum { typedef struct _GstCaps GstCaps; typedef struct _GstStaticCaps GstStaticCaps; -extern GstCaps * _gst_caps_any; -extern GstCaps * _gst_caps_none; +GST_EXPORT GstCaps * _gst_caps_any; +GST_EXPORT GstCaps * _gst_caps_none; /** * GST_CAPS_FLAGS: * @caps: a #GstCaps. diff --git a/gst/gstevent.h b/gst/gstevent.h index fdca6fe16e..d9db2c6fc4 100644 --- a/gst/gstevent.h +++ b/gst/gstevent.h @@ -174,7 +174,7 @@ typedef enum { G_BEGIN_DECLS -extern GType _gst_event_type; +GST_EXPORT GType _gst_event_type; #define GST_TYPE_EVENT (_gst_event_type) #define GST_IS_EVENT(obj) (GST_IS_MINI_OBJECT_TYPE (obj, GST_TYPE_EVENT)) diff --git a/gst/gstinfo.h b/gst/gstinfo.h index b085942451..5b8f87cf48 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -485,7 +485,7 @@ G_STMT_START{ \ */ GST_EXPORT GstDebugCategory * GST_CAT_DEFAULT; /* this symbol may not be used */ -extern gboolean _gst_debug_enabled; +GST_EXPORT gboolean _gst_debug_enabled; /* since 0.10.7, the min debug level, used for quickly discarding debug * messages that fall under the threshold. */ diff --git a/gst/gstmemory.h b/gst/gstmemory.h index 188354f747..eb54f2cb92 100644 --- a/gst/gstmemory.h +++ b/gst/gstmemory.h @@ -36,7 +36,7 @@ typedef struct _GstMemory GstMemory; typedef struct _GstMemoryInfo GstMemoryInfo; typedef struct _GstAllocator GstAllocator; -extern gsize gst_memory_alignment; +GST_EXPORT gsize gst_memory_alignment; /** * GstMemoryFlags: diff --git a/gst/gstsample.h b/gst/gstsample.h index 60c74e431e..280ff0d412 100644 --- a/gst/gstsample.h +++ b/gst/gstsample.h @@ -30,7 +30,7 @@ G_BEGIN_DECLS -extern GType _gst_sample_type; +GST_EXPORT GType _gst_sample_type; #define GST_TYPE_SAMPLE (_gst_sample_type) #define GST_IS_SAMPLE(obj) (GST_IS_MINI_OBJECT_TYPE(obj, GST_TYPE_SAMPLE)) diff --git a/gst/gststructure.h b/gst/gststructure.h index e7d790a51f..90c4b59b43 100644 --- a/gst/gststructure.h +++ b/gst/gststructure.h @@ -28,7 +28,7 @@ G_BEGIN_DECLS -extern GType _gst_structure_type; +GST_EXPORT GType _gst_structure_type; typedef struct _GstStructure GstStructure; diff --git a/gst/gsttrace.h b/gst/gsttrace.h index 0f99734fea..786a940840 100644 --- a/gst/gsttrace.h +++ b/gst/gsttrace.h @@ -124,7 +124,7 @@ void _gst_trace_add_entry (GstTrace *trace, guint32 seq, void gst_trace_read_tsc (gint64 *dst); -extern GStaticMutex _gst_trace_mutex; +GST_EXPORT GStaticMutex _gst_trace_mutex; gboolean gst_alloc_trace_available (void); const GList* gst_alloc_trace_list (void); @@ -196,7 +196,7 @@ G_STMT_START { \ #endif -extern gint _gst_trace_on; +GST_EXPORT gint _gst_trace_on; /** * gst_trace_add_entry: * @trace: a #GstTrace