mirror of
https://github.com/EsotericSoftware/spine-runtimes.git
synced 2026-02-13 10:38:46 +08:00
[cpp] Fixed compilation error on MSVC, compiler inferred division by 0 and errored out.
This commit is contained in:
parent
5e5112213e
commit
fd162c73a2
@ -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;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user