Skip to content

Commit

Permalink
Fixed link issue for MacOSX 10.11
Browse files Browse the repository at this point in the history
  • Loading branch information
Dimitri van Heesch committed Nov 14, 2015
1 parent dcf70a7 commit 0918a19
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/portable_c.c
@@ -1,9 +1,13 @@
#if (defined(__APPLE__) || defined(macintosh)) && !defined(DMG_BUILD)
#include <AvailabilityMacros.h>
// this hack doesn't seem to be needed on El Captain (10.11)
#if MAC_OS_X_VERSION_MAX_ALLOWED < MAC_OS_X_VERSION_10_11
// define this before including iconv.h to avoid a mapping of
// iconv_open and friends to libicon_open (done by mac ports),
// while the symbols without 'lib' are linked from /usr/lib/libiconv
#define LIBICONV_PLUG
#endif
#endif
#include <iconv.h>

// These functions are implemented in a C file, because there are different
Expand Down

0 comments on commit 0918a19

Please sign in to comment.