From e5783e1179b5acca343f23e6dd0ffe7fa95df1eb Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Wed, 25 Nov 2020 14:51:56 +0300 Subject: [PATCH] cmake: add missing checks for wcscasecmp, _wcsicmp, wcsncasecmp, _wcsnicmp --- CMakeLists.txt | 3 ++- include/SDL_config.h.cmake | 4 ++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CMakeLists.txt b/CMakeLists.txt index 0768836ea..b65f438b9 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -765,7 +765,7 @@ if(LIBC) set(HAVE_SIGNAL_H 1) foreach(_FN malloc calloc realloc free qsort abs memset memcpy memmove memcmp - wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp + wcslen wcslcpy wcslcat wcsdup wcsstr wcscmp wcsncmp _wcsicmp _wcsnicmp strlen _strrev _strupr _strlwr strchr strrchr strstr itoa _ltoa _ultoa strtol strtoul strtoll strtod atoi atof strcmp strncmp _stricmp _strnicmp strtok_s sscanf @@ -808,6 +808,7 @@ if(LIBC) _uitoa _ultoa strtol strtoul _i64toa _ui64toa strtoll strtoull atoi atof strcmp strncmp _stricmp strcasecmp _strnicmp strncasecmp wcscmp wcsdup wcslcat wcslcpy wcslen wcsncmp wcsstr + wcscasecmp _wcsicmp wcsncasecmp _wcsnicmp sscanf vsscanf vsnprintf fopen64 fseeko fseeko64 _Exit ) string(TOUPPER ${_FN} _UPPER) diff --git a/include/SDL_config.h.cmake b/include/SDL_config.h.cmake index 9564898b2..f5905537e 100644 --- a/include/SDL_config.h.cmake +++ b/include/SDL_config.h.cmake @@ -100,6 +100,10 @@ #cmakedefine HAVE_WCSSTR 1 #cmakedefine HAVE_WCSCMP 1 #cmakedefine HAVE_WCSNCMP 1 +#cmakedefine HAVE_WCSCASECMP 1 +#cmakedefine HAVE__WCSICMP 1 +#cmakedefine HAVE_WCSNCASECMP 1 +#cmakedefine HAVE__WCSNICMP 1 #cmakedefine HAVE_STRLEN 1 #cmakedefine HAVE_STRLCPY 1 #cmakedefine HAVE_STRLCAT 1