Added SDL_round(), contributed by Benoit Pierre - thanks!
This commit is contained in:
parent
5619521805
commit
5acb7c63d1
19 changed files with 29 additions and 4 deletions
|
@ -495,7 +495,7 @@ if(LIBC)
|
|||
strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa
|
||||
_ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp
|
||||
_stricmp _strnicmp sscanf atan atan2 acos asin ceil copysign cos
|
||||
cosf fabs floor log pow scalbn sin sinf sqrt sqrtf tan tanf)
|
||||
cosf fabs floor log pow round scalbn sin sinf sqrt sqrtf tan tanf)
|
||||
string(TOUPPER ${_FN} _UPPER)
|
||||
set(HAVE_${_UPPER} 1)
|
||||
endforeach()
|
||||
|
@ -541,7 +541,7 @@ if(LIBC)
|
|||
if(HAVE_LIBM)
|
||||
set(CMAKE_REQUIRED_LIBRARIES m)
|
||||
foreach(_FN
|
||||
atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin
|
||||
atan atan2 ceil copysign cos cosf fabs floor log pow round scalbn sin
|
||||
sinf sqrt sqrtf tan tanf)
|
||||
string(TOUPPER ${_FN} _UPPER)
|
||||
set(_HAVEVAR "HAVE_${_UPPER}")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue