From d76f39be0e944fe46d4aab93be7491d2db7ff0f0 Mon Sep 17 00:00:00 2001 From: Michael Smith Date: Mon, 28 Apr 2008 22:38:11 +0000 Subject: gst/debug/gstnavigationtest.c: MSVC doesn't provide rint(), define an adequate replacement locally as elsewhere. Original commit message from CVS: * gst/debug/gstnavigationtest.c: MSVC doesn't provide rint(), define an adequate replacement locally as elsewhere. --- gst/debug/gstnavigationtest.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'gst/debug/gstnavigationtest.c') diff --git a/gst/debug/gstnavigationtest.c b/gst/debug/gstnavigationtest.c index c81f8aaa..5c339252 100644 --- a/gst/debug/gstnavigationtest.c +++ b/gst/debug/gstnavigationtest.c @@ -28,6 +28,10 @@ #include +#ifdef _MSC_VER +#define rint(x) (floor((x)+0.5)) +#endif + GST_DEBUG_CATEGORY_STATIC (navigationtest_debug); #define GST_CAT_DEFAULT navigationtest_debug -- cgit