From e55d18baa24e8ce5864bdb7a32d4fcab58003e2b Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Mon, 29 Mar 2010 16:13:54 +0300 Subject: [PATCH] gstinfo: always define dummy debug category as a function prototype It does not seem to make sense to define this as a function only if we have varargs macros. --- gst/gstinfo.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gst/gstinfo.h b/gst/gstinfo.h index 216d60c773..ec60f6420a 100644 --- a/gst/gstinfo.h +++ b/gst/gstinfo.h @@ -1179,11 +1179,7 @@ GST_FIXME (const char *format, ...) #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 *_gst_debug_dummy_##var = NULL -#else -#define GST_DEBUG_CATEGORY_STATIC(var) void _gst_debug_dummy_##var (void) -#endif +#define GST_DEBUG_CATEGORY_STATIC(var) void _gst_debug_dummy_static_##var (void) #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 #define gst_debug_category_free(category) G_STMT_START{ }G_STMT_END