Add missing CXX check : HAVE_STRCASECMP, HAVE_STRNCASECMP on string.h

This issue appear with clang++ -O1 -fsanitize=address compiler
This commit is contained in:
Nicolas PLANEL 2015-06-11 22:14:05 -04:00
parent f97191b050
commit 9349158d02
1 changed files with 3 additions and 0 deletions

View File

@ -83,6 +83,9 @@ macro( perform_feature_checks )
check_symbol_exists( strncasecmp "strings.h" HAVE_STRNCASECMP )
check_symbol_exists( strtok_r "string.h" HAVE_STRTOKR )
check_cxx_symbol_exists( strcasecmp "string.h" HAVE_STRCASECMP )
check_cxx_symbol_exists( strncasecmp "string.h" HAVE_STRNCASECMP )
# Some platforms define malloc and free in malloc.h instead of stdlib.h.
check_symbol_exists( malloc "stdlib.h" MALLOC_IN_STDLIB_H )