[cpp] Fixed compilation error on MSVC, compiler inferred division by 0 and errored out.

This commit is contained in:
badlogic 2018-07-02 13:39:20 +02:00
parent 5e5112213e
commit fd162c73a2

View File

@ -37,6 +37,11 @@
#include <random>
#include <stdlib.h>
// Required for division by 0 in _isNaN on MSVC
#ifdef _MSC_VER
#pragma warning(disable:4723)
#endif
using namespace spine;
const float MathUtil::Pi = 3.1415926535897932385f;