From: Sebastian Droege Date: Mon, 20 Nov 2006 11:11:20 +0000 (+0000) Subject: libs/gst/check/gstcheck.h: Fix compilation and running against 0.9.4. Fixes #377332. X-Git-Tag: RELEASE-0_10_11~7 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=2760bf504d0957d3bdfd0bb48f43d3effdab9b9b;p=platform%2Fupstream%2Fgstreamer.git libs/gst/check/gstcheck.h: Fix compilation and running against 0.9.4. Fixes #377332. Original commit message from CVS: Patch by: Sebastian Droege * libs/gst/check/gstcheck.h: Fix compilation and running against 0.9.4. Fixes #377332. --- diff --git a/ChangeLog b/ChangeLog index 3469af6..698e8de 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,5 +1,12 @@ 2006-11-20 Wim Taymans + Patch by: Sebastian Droege + + * libs/gst/check/gstcheck.h: + Fix compilation and running against 0.9.4. Fixes #377332. + +2006-11-20 Wim Taymans + * gst/gstsegment.c: (gst_segment_set_seek), (gst_segment_set_newsegment_full), (gst_segment_to_stream_time), (gst_segment_to_running_time): diff --git a/libs/gst/check/gstcheck.h b/libs/gst/check/gstcheck.h index 7a89d34..ff3c33b 100644 --- a/libs/gst/check/gstcheck.h +++ b/libs/gst/check/gstcheck.h @@ -83,13 +83,24 @@ gst_check_message_error (msg, GST_MESSAGE_ERROR, \ /*** * 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) \