Skip to content

Commit d486de6

Browse files
committed
cmake: fixed iconv detection test program
Fixes libsdl-org#8614
1 parent 42a8139 commit d486de6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

CMakeLists.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1105,7 +1105,7 @@ if(SDL_LIBC)
11051105
#include <stddef.h>
11061106
#include <iconv.h>
11071107
int main(int argc, char **argv) {
1108-
return iconv_open(NULL,NULL);
1108+
return !iconv_open(NULL,NULL);
11091109
}" ICONV_IN_LIBC)
11101110

11111111
cmake_push_check_state()
@@ -1114,7 +1114,7 @@ if(SDL_LIBC)
11141114
#include <stddef.h>
11151115
#include <iconv.h>
11161116
int main(int argc, char **argv) {
1117-
return iconv_open(NULL,NULL);
1117+
return !iconv_open(NULL,NULL);
11181118
}" ICONV_IN_LIBICONV)
11191119
cmake_pop_check_state()
11201120

0 commit comments

Comments
 (0)