From 63803bfac086035368ecd3314439bb7321769ce2 Mon Sep 17 00:00:00 2001 From: Nirbheek Chauhan Date: Thu, 25 Feb 2016 05:16:42 +0530 Subject: win32: Don't try to include xmath.h on newer Visual Studio --- gst/matroska/ebml-read.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c index a8be67a56..56448b10b 100644 --- a/gst/matroska/ebml-read.c +++ b/gst/matroska/ebml-read.c @@ -30,8 +30,9 @@ #include -/* NAN is supposed to be in math.h, Microsoft defines it in xmath.h */ -#ifdef _MSC_VER +/* 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 #endif -- cgit v1.2.1