Bladeren bron

Fix compilation with iconv on FreeBSD

Cacodemon345 4 jaren geleden
bovenliggende
commit
dacf6cfbaa
1 gewijzigde bestanden met toevoegingen van 4 en 0 verwijderingen
  1. 4 0
      src/stdlib/SDL_iconv.c

+ 4 - 0
src/stdlib/SDL_iconv.c

@@ -31,6 +31,10 @@
 #include "SDL_endian.h"
 
 #if defined(HAVE_ICONV) && defined(HAVE_ICONV_H)
+#ifdef __FreeBSD__
+/* Define LIBICONV_PLUG to use iconv from the base instead of ports and avoid linker errors. */
+#define LIBICONV_PLUG 1
+#endif
 #include <iconv.h>
 
 /* Depending on which standard the iconv() was implemented with,