mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-06-18 12:08:58 +00:00
Fix compilation with iconv on FreeBSD
This commit is contained in:
parent
a5f3ea1448
commit
dacf6cfbaa
1 changed files with 4 additions and 0 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue