summaryrefslogtreecommitdiffstats
path: root/src/portable_c.c
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2015-11-14 12:50:25 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2015-11-14 12:50:25 (GMT)
commit0918a19225daedfbd5e23388124a5de3860d5420 (patch)
tree0776e06d21cab41e2e0d1c46d98a1173ddfdb688 /src/portable_c.c
parentdcf70a7e0c11ff2a55b1bc23eb034b5fab47bfef (diff)
downloadDoxygen-0918a19225daedfbd5e23388124a5de3860d5420.zip
Doxygen-0918a19225daedfbd5e23388124a5de3860d5420.tar.gz
Doxygen-0918a19225daedfbd5e23388124a5de3860d5420.tar.bz2
Fixed link issue for MacOSX 10.11
Diffstat (limited to 'src/portable_c.c')
-rw-r--r--src/portable_c.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/portable_c.c b/src/portable_c.c
index 944c996..3a79741 100644
--- a/src/portable_c.c
+++ b/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