summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTim-Philipp Müller <tim@centricular.com>2016-05-14 17:04:57 +0100
committerTim-Philipp Müller <tim@centricular.com>2016-05-14 17:04:57 +0100
commit3320f4f0defae2b9626879ad61f30b1c59c14752 (patch)
tree05f79a6cd8ec140f9ab1b9e7c6e57ad746d192eb
parentfa008f271a52f82dededc28bd81b020ca7939b47 (diff)
matroska: use math-compat.h for NAN define
-rw-r--r--gst/matroska/ebml-read.c13
1 files changed, 1 insertions, 12 deletions
diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c
index 56448b10b..0df708670 100644
--- a/gst/matroska/ebml-read.c
+++ b/gst/matroska/ebml-read.c
@@ -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