summaryrefslogtreecommitdiffstats
path: root/gst/debug
diff options
context:
space:
mode:
authorMichael Smith <msmith@xiph.org>2008-04-28 22:38:11 +0000
committerMichael Smith <msmith@xiph.org>2008-04-28 22:38:11 +0000
commitd76f39be0e944fe46d4aab93be7491d2db7ff0f0 (patch)
tree361824cc88cda3932270f0a890fbf526b16830fd /gst/debug
parentdeca08cdc4ed40a4afb62ccb281f3cdaf1bc1171 (diff)
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.
Diffstat (limited to 'gst/debug')
-rw-r--r--gst/debug/gstnavigationtest.c4
1 files changed, 4 insertions, 0 deletions
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 <gst/video/video.h>
+#ifdef _MSC_VER
+#define rint(x) (floor((x)+0.5))
+#endif
+
GST_DEBUG_CATEGORY_STATIC (navigationtest_debug);
#define GST_CAT_DEFAULT navigationtest_debug