diff --git a/CMakeLists.txt b/CMakeLists.txt index 149004866..adec587c4 100644 --- a/CMakeLists.txt +++ b/CMakeLists.txt @@ -1134,7 +1134,7 @@ if(SDL_LIBC) #include #include int main(int argc, char **argv) { - return iconv_open(NULL,NULL); + return !iconv_open(NULL,NULL); }" ICONV_IN_LIBC) cmake_push_check_state() @@ -1143,7 +1143,7 @@ if(SDL_LIBC) #include #include int main(int argc, char **argv) { - return iconv_open(NULL,NULL); + return !iconv_open(NULL,NULL); }" ICONV_IN_LIBICONV) cmake_pop_check_state()