Do not restrict this fix to clang, it

This commit is contained in:
niansa/tuxifan 2023-03-02 12:16:09 +01:00 committed by GitHub
parent 2c04b27e36
commit 873c9828ce
Signed by: DevComp
GPG key ID: 4AEE18F83AFDEB23

View file

@ -300,14 +300,12 @@ static float fade(float t)
return t * t * t * (t * (t * 6 - 15) + 10);
}
#ifdef __clang__
#if __cplusplus <= 201703L
static float lerp(float t, float a, float b)
{
return a + t * (b - a);
}
#endif
#endif
static float grad(unsigned char hash, float x, float y, float z)
{