mirror of https://github.com/libsdl-org/SDL
Check for modff in addition to modf
This commit is contained in:
parent
dab4f296b8
commit
e72935a445
|
@ -1167,8 +1167,8 @@ if(SDL_LIBC)
|
||||||
foreach(_FN
|
foreach(_FN
|
||||||
atan atan2 atanf atan2f ceil ceilf copysign copysignf cos cosf
|
atan atan2 atanf atan2f ceil ceilf copysign copysignf cos cosf
|
||||||
exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f
|
exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f
|
||||||
lround lroundf pow powf round roundf scalbn scalbnf sin sinf sqrt
|
lround lroundf modf modff pow powf round roundf scalbn scalbnf
|
||||||
sqrtf tan tanf acos acosf asin asinf trunc truncf)
|
sin sinf sqrt sqrtf tan tanf acos acosf asin asinf trunc truncf)
|
||||||
string(TOUPPER ${_FN} _UPPER)
|
string(TOUPPER ${_FN} _UPPER)
|
||||||
set(LIBC_HASVAR "LIBC_HAS_${_UPPER}")
|
set(LIBC_HASVAR "LIBC_HAS_${_UPPER}")
|
||||||
check_symbol_exists("${_FN}" "math.h" ${LIBC_HASVAR})
|
check_symbol_exists("${_FN}" "math.h" ${LIBC_HASVAR})
|
||||||
|
|
|
@ -121,6 +121,7 @@
|
||||||
#define HAVE_LROUND 1
|
#define HAVE_LROUND 1
|
||||||
#define HAVE_LROUNDF 1
|
#define HAVE_LROUNDF 1
|
||||||
#define HAVE_MODF 1
|
#define HAVE_MODF 1
|
||||||
|
#define HAVE_MODFF 1
|
||||||
#define HAVE_POW 1
|
#define HAVE_POW 1
|
||||||
#define HAVE_POWF 1
|
#define HAVE_POWF 1
|
||||||
#define HAVE_ROUND 1
|
#define HAVE_ROUND 1
|
||||||
|
|
|
@ -115,6 +115,7 @@
|
||||||
#define HAVE_LROUND 1
|
#define HAVE_LROUND 1
|
||||||
#define HAVE_LROUNDF 1
|
#define HAVE_LROUNDF 1
|
||||||
#define HAVE_MODF 1
|
#define HAVE_MODF 1
|
||||||
|
#define HAVE_MODFF 1
|
||||||
#define HAVE_POW 1
|
#define HAVE_POW 1
|
||||||
#define HAVE_POWF 1
|
#define HAVE_POWF 1
|
||||||
#define HAVE_ROUND 1
|
#define HAVE_ROUND 1
|
||||||
|
|
|
@ -117,6 +117,7 @@
|
||||||
#define HAVE_LROUND 1
|
#define HAVE_LROUND 1
|
||||||
#define HAVE_LROUNDF 1
|
#define HAVE_LROUNDF 1
|
||||||
#define HAVE_MODF 1
|
#define HAVE_MODF 1
|
||||||
|
#define HAVE_MODFF 1
|
||||||
#define HAVE_POW 1
|
#define HAVE_POW 1
|
||||||
#define HAVE_POWF 1
|
#define HAVE_POWF 1
|
||||||
#define HAVE_ROUND 1
|
#define HAVE_ROUND 1
|
||||||
|
|
|
@ -135,6 +135,7 @@
|
||||||
#define HAVE_LROUND 1
|
#define HAVE_LROUND 1
|
||||||
#define HAVE_LROUNDF 1
|
#define HAVE_LROUNDF 1
|
||||||
#define HAVE_MODF 1
|
#define HAVE_MODF 1
|
||||||
|
#define HAVE_MODFF 1
|
||||||
#define HAVE_POW 1
|
#define HAVE_POW 1
|
||||||
#define HAVE_POWF 1
|
#define HAVE_POWF 1
|
||||||
#define HAVE_ROUND 1
|
#define HAVE_ROUND 1
|
||||||
|
|
Loading…
Reference in New Issue