From 8cdb4526d96bdb25f1a6594b2830b4a3677b89fa Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Thu, 21 Nov 2019 10:33:56 +0300 Subject: [PATCH] CMakeLists.txt: add several missing function checks for unix case. --- CMakeLists.txt | 9 ++++++--- include/SDL_config.h.cmake | 1 + 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index d384cf7f0cc52..eda87597f2747 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -800,7 +800,8 @@ if(LIBC) _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp - vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp + wcscmp wcsdup wcslcat wcslcpy wcslen wcsncmp wcsstr + sscanf vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp nanosleep sysconf sysctlbyname getauxval poll _Exit ) string(TOUPPER ${_FN} _UPPER) @@ -812,8 +813,10 @@ if(LIBC) if(HAVE_LIBM) set(CMAKE_REQUIRED_LIBRARIES m) foreach(_FN - atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin - sinf sqrt sqrtf tan tanf acos asin) + atan atan2 atanf atan2f ceil ceilf copysign copysignf cos cosf + exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f + pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf acos acosf + asin asinf) string(TOUPPER ${_FN} _UPPER) set(_HAVEVAR "HAVE_${_UPPER}") check_function_exists("${_FN}" ${_HAVEVAR}) diff --git a/include/SDL_config.h.cmake b/include/SDL_config.h.cmake index 53fd270c6142a..514e952431e94 100644 --- a/include/SDL_config.h.cmake +++ b/include/SDL_config.h.cmake @@ -132,6 +132,7 @@ #cmakedefine HAVE_STRCASECMP 1 #cmakedefine HAVE__STRNICMP 1 #cmakedefine HAVE_STRNCASECMP 1 +#cmakedefine HAVE_SSCANF 1 #cmakedefine HAVE_VSSCANF 1 #cmakedefine HAVE_VSNPRINTF 1 #cmakedefine HAVE_M_PI 1