Permalink
Browse files

Fixed link issue for MacOSX 10.11

  • Loading branch information...
Dimitri van Heesch
Dimitri van Heesch committed Nov 14, 2015
1 parent dcf70a7 commit 0918a19225daedfbd5e23388124a5de3860d5420
Showing with 4 additions and 0 deletions.
  1. +4 −0 src/portable_c.c
View
@@ -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

0 comments on commit 0918a19

Please sign in to comment.