2006-11-20 Wim Taymans <wim@fluendo.com>
+ Patch by: Sebastian Droege <slomo at ubuntu dot com>
+
+ * libs/gst/check/gstcheck.h:
+ Fix compilation and running against 0.9.4. Fixes #377332.
+
+2006-11-20 Wim Taymans <wim@fluendo.com>
+
* gst/gstsegment.c: (gst_segment_set_seek),
(gst_segment_set_newsegment_full), (gst_segment_to_stream_time),
(gst_segment_to_running_time):
/***
* wrappers for START_TEST and END_TEST
*/
+#if CHECK_MAJOR_VERSION >= 0 && CHECK_MINOR_VERSION >= 9 && CHECK_MICRO_VERSION >= 4
#define GST_START_TEST(__testname) \
-static void __testname (void)\
+static void __testname (int __i__)\
{\
GST_DEBUG ("test start"); \
tcase_fn_start (""# __testname, __FILE__, __LINE__);
#define GST_END_TEST END_TEST
+#else
+#define GST_START_TEST(__testname) \
+static void __testname ()\
+{\
+ GST_DEBUG ("test start"); \
+ tcase_fn_start (""# __testname, __FILE__, __LINE__);
+
+#define GST_END_TEST END_TEST
+#endif
+
/* additional fail macros */
#define fail_unless_equals_int(a, b) \