mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
matroska: use math-compat.h for NAN define
This commit is contained in:
parent
fa008f271a
commit
3320f4f0de
1 changed files with 1 additions and 12 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue