build: fix redeclaration erors when building with --gst-disable-gst-debug

Give dummy symbols a uniqe name.
This commit is contained in:
Stefan Kost 2010-03-28 15:10:20 +03:00
parent f89ccf7d3d
commit b40c2f8114

View file

@ -1177,12 +1177,12 @@ GST_FIXME (const char *format, ...)
#define gst_debug_set_threshold_for_name(name,level) G_STMT_START{ }G_STMT_END
#define gst_debug_unset_threshold_for_name(name) G_STMT_START{ }G_STMT_END
#define GST_DEBUG_CATEGORY(var) void _gst_dummy_declaration (void)
#define GST_DEBUG_CATEGORY_EXTERN(var) void _gst_dummy_declaration (void)
#define GST_DEBUG_CATEGORY(var) void _gst_debug_dummy_##var (void)
#define GST_DEBUG_CATEGORY_EXTERN(var) void _gst_debug_dummy_extern_##var (void)
#if !defined(G_HAVE_GNUC_VARARGS) && !defined(G_HAVE_ISO_VARARGS)
#define GST_DEBUG_CATEGORY_STATIC(var) static GstDebugCategory *var = NULL
#define GST_DEBUG_CATEGORY_STATIC(var) static GstDebugCategory *_gst_debug_dummy_##var = NULL
#else
#define GST_DEBUG_CATEGORY_STATIC(var) void _gst_dummy_declaration (void)
#define GST_DEBUG_CATEGORY_STATIC(var) void _gst_debug_dummy_##var (void)
#endif
#define GST_DEBUG_CATEGORY_INIT(var,name,color,desc) G_STMT_START{ }G_STMT_END
#define GST_DEBUG_CATEGORY_GET(var,name) G_STMT_START{ }G_STMT_END