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.
This commit is contained in:
Michael Smith 2008-04-28 22:38:11 +00:00
parent deca08cdc4
commit d76f39be0e
2 changed files with 10 additions and 0 deletions

View file

@ -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

View file

@ -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