Add missing langinfo check for CMake

This commit is contained in:
NotTsunami 2022-04-18 02:45:14 -04:00 committed by Martijn van Beurden
parent f579b163fe
commit b171e767e2
1 changed files with 8 additions and 0 deletions

View File

@ -105,6 +105,14 @@ check_function_exists(fseeko HAVE_FSEEKO)
check_c_source_compiles("int main() { return __builtin_bswap16 (0) ; }" HAVE_BSWAP16)
check_c_source_compiles("int main() { return __builtin_bswap32 (0) ; }" HAVE_BSWAP32)
check_c_source_compiles("
#include <langinfo.h>
int main()
{
char* cs = nl_langinfo(CODESET);
return !cs;
}"
HAVE_LANGINFO_CODESET)
test_big_endian(CPU_IS_BIG_ENDIAN)