cmake: fixed iconv detection test program
Fixes https://github.com/libsdl-org/SDL/issues/8614
This commit is contained in:
parent
42a8139fd6
commit
d486de6349
1 changed files with 2 additions and 2 deletions
|
@ -1105,7 +1105,7 @@ if(SDL_LIBC)
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
return iconv_open(NULL,NULL);
|
return !iconv_open(NULL,NULL);
|
||||||
}" ICONV_IN_LIBC)
|
}" ICONV_IN_LIBC)
|
||||||
|
|
||||||
cmake_push_check_state()
|
cmake_push_check_state()
|
||||||
|
@ -1114,7 +1114,7 @@ if(SDL_LIBC)
|
||||||
#include <stddef.h>
|
#include <stddef.h>
|
||||||
#include <iconv.h>
|
#include <iconv.h>
|
||||||
int main(int argc, char **argv) {
|
int main(int argc, char **argv) {
|
||||||
return iconv_open(NULL,NULL);
|
return !iconv_open(NULL,NULL);
|
||||||
}" ICONV_IN_LIBICONV)
|
}" ICONV_IN_LIBICONV)
|
||||||
cmake_pop_check_state()
|
cmake_pop_check_state()
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue