diff --git a/include/SDL_stdinc.h b/include/SDL_stdinc.h index 02c9e1399..fdf96415f 100644 --- a/include/SDL_stdinc.h +++ b/include/SDL_stdinc.h @@ -83,9 +83,6 @@ #ifdef HAVE_FLOAT_H # include #endif -#if defined(HAVE_ICONV) && defined(HAVE_ICONV_H) -# include -#endif /** * The number of elements in an array. diff --git a/src/stdlib/SDL_iconv.c b/src/stdlib/SDL_iconv.c index 8f0403734..a5fc1ec03 100644 --- a/src/stdlib/SDL_iconv.c +++ b/src/stdlib/SDL_iconv.c @@ -31,6 +31,7 @@ #include "SDL_endian.h" #ifdef HAVE_ICONV +#include /* Depending on which standard the iconv() was implemented with, iconv() may or may not use const char ** for the inbuf param.