Commit 6dedbc4309087c80b9b61b99d214b78c2631593c

Sam Lantinga 2016-10-10T02:58:12

Make sure we have iconv.h before building with it

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/stdlib/SDL_iconv.c b/src/stdlib/SDL_iconv.c
index a5fc1ec..34bcd84 100644
--- a/src/stdlib/SDL_iconv.c
+++ b/src/stdlib/SDL_iconv.c
@@ -30,7 +30,7 @@
 #include "SDL_stdinc.h"
 #include "SDL_endian.h"
 
-#ifdef HAVE_ICONV
+#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
 #include <iconv.h>
 
 /* Depending on which standard the iconv() was implemented with,