gst/debug/gstnavigationtest.c: MSVC doesn't provide rint(), define an adequate replac...
authorMichael Smith <msmith@xiph.org>
Mon, 28 Apr 2008 22:38:11 +0000 (22:38 +0000)
committerMichael Smith <msmith@xiph.org>
Mon, 28 Apr 2008 22:38:11 +0000 (22:38 +0000)
Original commit message from CVS:
* gst/debug/gstnavigationtest.c:
MSVC doesn't provide rint(), define an adequate replacement locally as
elsewhere.

ChangeLog
gst/debug/gstnavigationtest.c

index 67bbbbb..68840e5 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2008-04-28  Michael Smith <msmith@songbirdnest.com>
+
+       * gst/debug/gstnavigationtest.c:
+         MSVC doesn't provide rint(), define an adequate replacement locally as
+         elsewhere.
+
 2008-04-28  Julien Moutte  <julien@fluendo.com>
 
        * gst/debug/rndbuffersize.c: (gst_rnd_buffer_size_loop): Fix printf
index c81f8aa..5c33925 100644 (file)
 
 #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