CMakeLists.txt: add several missing function checks for unix case.
authorOzkan Sezer
Thu, 21 Nov 2019 10:33:56 +0300
changeset 132655ae5e0b567a5
parent 13264 951801b5b148
child 13266 26f45adf8d7a
CMakeLists.txt: add several missing function checks for unix case.
CMakeLists.txt
include/SDL_config.h.cmake
     1.1 --- a/CMakeLists.txt	Thu Nov 21 10:02:02 2019 +0300
     1.2 +++ b/CMakeLists.txt	Thu Nov 21 10:33:56 2019 +0300
     1.3 @@ -800,7 +800,8 @@
     1.4              _strrev _strupr _strlwr strchr strrchr strstr strtok_r itoa _ltoa
     1.5              _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull
     1.6              atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp
     1.7 -            vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp
     1.8 +            wcscmp wcsdup wcslcat wcslcpy wcslen wcsncmp wcsstr
     1.9 +            sscanf vsscanf vsnprintf fopen64 fseeko fseeko64 sigaction setjmp
    1.10              nanosleep sysconf sysctlbyname getauxval poll _Exit
    1.11              )
    1.12        string(TOUPPER ${_FN} _UPPER)
    1.13 @@ -812,8 +813,10 @@
    1.14      if(HAVE_LIBM)
    1.15        set(CMAKE_REQUIRED_LIBRARIES m)
    1.16        foreach(_FN
    1.17 -              atan atan2 ceil copysign cos cosf fabs floor log pow scalbn sin
    1.18 -              sinf sqrt sqrtf tan tanf acos asin)
    1.19 +              atan atan2 atanf atan2f ceil ceilf copysign copysignf cos cosf
    1.20 +              exp expf fabs fabsf floor floorf fmod fmodf log logf log10 log10f
    1.21 +              pow powf scalbn scalbnf sin sinf sqrt sqrtf tan tanf acos acosf
    1.22 +              asin asinf)
    1.23          string(TOUPPER ${_FN} _UPPER)
    1.24          set(_HAVEVAR "HAVE_${_UPPER}")
    1.25          check_function_exists("${_FN}" ${_HAVEVAR})
     2.1 --- a/include/SDL_config.h.cmake	Thu Nov 21 10:02:02 2019 +0300
     2.2 +++ b/include/SDL_config.h.cmake	Thu Nov 21 10:33:56 2019 +0300
     2.3 @@ -132,6 +132,7 @@
     2.4  #cmakedefine HAVE_STRCASECMP 1
     2.5  #cmakedefine HAVE__STRNICMP 1
     2.6  #cmakedefine HAVE_STRNCASECMP 1
     2.7 +#cmakedefine HAVE_SSCANF 1
     2.8  #cmakedefine HAVE_VSSCANF 1
     2.9  #cmakedefine HAVE_VSNPRINTF 1
    2.10  #cmakedefine HAVE_M_PI 1