schro: #include math.h before schroedinger headers

The schroedinger headers unconditionally #define over C99's rint when
compiling with msvc which messes up the later inclusion of math.h.
Including math.h before schroedinger headers avoids getting syntax
errors in math.h

https://bugzilla.gnome.org/show_bug.cgi?id=775293
This commit is contained in:
Scott D Phillips 2016-11-28 16:02:03 -08:00 committed by Tim-Philipp Müller
parent 2160e0e2bd
commit 70ba84ee12
3 changed files with 3 additions and 3 deletions

View file

@ -28,8 +28,8 @@
#include <gst/video/gstvideopool.h>
#include <gst/video/gstvideodecoder.h>
#include <string.h>
#include <schroedinger/schro.h>
#include <math.h>
#include <schroedinger/schro.h>
#include "gstschroutils.h"
#include <schroedinger/schroparse.h>

View file

@ -28,10 +28,10 @@
#include <gst/video/gstvideoutils.h>
#include <string.h>
#include <math.h>
#include <schroedinger/schro.h>
#include <schroedinger/schrobitstream.h>
#include <schroedinger/schrovirtframe.h>
#include <math.h>
#include "gstschroutils.h"
GST_DEBUG_CATEGORY_EXTERN (schro_debug);

View file

@ -21,6 +21,7 @@
#include "config.h"
#endif
#include <math.h>
#include "gstschroutils.h"
//#define SCHRO_ENABLE_UNSTABLE_API
@ -30,7 +31,6 @@
#include <schroedinger/schro.h>
#include <schroedinger/schrobitstream.h>
#include <schroedinger/schrovirtframe.h>
#include <math.h>
#include <string.h>
GST_DEBUG_CATEGORY_EXTERN (schro_debug);