cmake: fixed iconv detection test program

Fixes https://github.com/libsdl-org/SDL/issues/8614
This commit is contained in:
Ozkan Sezer 2023-11-26 01:55:24 +03:00
parent 0fb36f29a8
commit bbcf40e811
1 changed files with 2 additions and 2 deletions

View File

@ -1134,7 +1134,7 @@ if(SDL_LIBC)
#include <stddef.h>
#include <iconv.h>
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 <stddef.h>
#include <iconv.h>
int main(int argc, char **argv) {
return iconv_open(NULL,NULL);
return !iconv_open(NULL,NULL);
}" ICONV_IN_LIBICONV)
cmake_pop_check_state()