win32: Don't try to include xmath.h on newer Visual Studio

This commit is contained in:
Nirbheek Chauhan 2016-02-25 05:16:42 +05:30 committed by Tim-Philipp Müller
parent 5d93844676
commit 63803bfac0

View file

@ -30,8 +30,9 @@
#include <math.h>
/* 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 <xmath.h>
#endif