mirror of
https://github.com/ClassiCube/ClassiCube.git
synced 2025-09-11 16:45:48 -04:00
Fix compiling on VS2019
In VS2019, although the math functions are intrinsic, they need to be declared by the math.h header. So the header must be included in the ifndef block.
This commit is contained in:
parent
0d97d58edc
commit
4741c548d6
@ -5,6 +5,7 @@
|
|||||||
#include <stdlib.h>
|
#include <stdlib.h>
|
||||||
|
|
||||||
#ifndef __GNUC__
|
#ifndef __GNUC__
|
||||||
|
#include <math.h>
|
||||||
float Math_AbsF(float x) { return fabsf(x); /* MSVC intrinsic */ }
|
float Math_AbsF(float x) { return fabsf(x); /* MSVC intrinsic */ }
|
||||||
float Math_SqrtF(float x) { return sqrtf(x); /* MSVC intrinsic */ }
|
float Math_SqrtF(float x) { return sqrtf(x); /* MSVC intrinsic */ }
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
x
Reference in New Issue
Block a user