matroska: use math-compat.h for NAN define

This commit is contained in:
Tim-Philipp Müller 2016-05-14 17:04:57 +01:00
parent fa008f271a
commit 3320f4f0de

View file

@ -28,18 +28,7 @@
#include "ebml-read.h"
#include "ebml-ids.h"
#include <math.h>
/* NAN is supposed to be in math.h, Microsoft defines it in xmath.h
* However, starting iwth Visual Studio 8, NAN is defined by default */
#if defined (_MSC_VER) && _MSC_VER < 1500
#include <xmath.h>
#endif
/* If everything goes wrong try 0.0/0.0 which should be NAN */
#ifndef NAN
#define NAN (0.0 / 0.0)
#endif
#include <gst/math-compat.h>
GST_DEBUG_CATEGORY (ebmlread_debug);
#define GST_CAT_DEFAULT ebmlread_debug