videotestsrc: include new math-compat.h header for rint() on MSVC
authorTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 Oct 2010 18:13:43 +0000 (19:13 +0100)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 5 Oct 2010 18:13:43 +0000 (19:13 +0100)
Should fix compilation with Visual Studio 2008.

https://bugzilla.gnome.org/show_bug.cgi?id=630802

gst/videotestsrc/videotestsrc.c

index 61c2aa5..c06b353 100644 (file)
 #include "videotestsrc.h"
 #include "gstvideotestsrcorc.h"
 
+#include <gst/math-compat.h>
 
 #include <string.h>
 #include <stdlib.h>
-#include <math.h>
-
-#ifndef M_PI
-#define M_PI  3.14159265358979323846
-#endif
 
 static void paint_tmpline_ARGB (paintinfo * p, int x, int w);
 static void paint_tmpline_AYUV (paintinfo * p, int x, int w);
 
-
-
 static unsigned char
 random_char (void)
 {