diff --git a/gst/matroska/ebml-read.c b/gst/matroska/ebml-read.c index a8be67a568..56448b10ba 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