Procházet zdrojové kódy

Make sure we have iconv.h before building with it

Sam Lantinga před 8 roky
rodič
revize
6dedbc4309
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      src/stdlib/SDL_iconv.c

+ 1 - 1
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,