summaryrefslogtreecommitdiffstats
path: root/src/portable_c.c
diff options
context:
space:
mode:
authorDimitri van Heesch <dimitri@stack.nl>2014-06-14 17:34:36 (GMT)
committerDimitri van Heesch <dimitri@stack.nl>2014-06-15 13:11:44 (GMT)
commit98a54c576eec4feda606156ae591854311d9cd0e (patch)
treeb84864b6b256b00ce2c8bc138e1f1e0b45a5f14c /src/portable_c.c
parent3333536dfd3066f10183cbeb5a80faef232982fa (diff)
downloadDoxygen-98a54c576eec4feda606156ae591854311d9cd0e.zip
Doxygen-98a54c576eec4feda606156ae591854311d9cd0e.tar.gz
Doxygen-98a54c576eec4feda606156ae591854311d9cd0e.tar.bz2
Added build support for Python3+ and Python2.6+
Diffstat (limited to 'src/portable_c.c')
-rw-r--r--src/portable_c.c6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/portable_c.c b/src/portable_c.c
index 05bb4bd..fb83b45 100644
--- a/src/portable_c.c
+++ b/src/portable_c.c
@@ -1,3 +1,9 @@
+#if defined(__APPLE__) || defined(macintosh)
+// 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
#include <iconv.h>
// These functions are implemented in a C file, because there are different