summaryrefslogtreecommitdiff
path: root/libs
diff options
context:
space:
mode:
authorSebastian Droege <slomo@ubuntu.com>2006-11-20 11:11:20 +0000
committerWim Taymans <wim.taymans@gmail.com>2006-11-20 11:11:20 +0000
commit2760bf504d0957d3bdfd0bb48f43d3effdab9b9b (patch)
tree84ea22ef70fbb9755f9f0c362eeb2f513993d2c2 /libs
parentf830f6f4ace775ee2caaba0800bbec8a9eb253b8 (diff)
libs/gst/check/gstcheck.h: Fix compilation and running against 0.9.4. Fixes #377332.
Original commit message from CVS: Patch by: Sebastian Droege <slomo at ubuntu dot com> * libs/gst/check/gstcheck.h: Fix compilation and running against 0.9.4. Fixes #377332.
Diffstat (limited to 'libs')
-rw-r--r--libs/gst/check/gstcheck.h13
1 files changed, 12 insertions, 1 deletions
diff --git a/libs/gst/check/gstcheck.h b/libs/gst/check/gstcheck.h
index 7a89d34a2..ff3c33b4c 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) \