Web   ·   Wiki   ·   Activities   ·   Blog   ·   Lists   ·   Chat   ·   Meeting   ·   Bugs   ·   Git   ·   Translate   ·   Archive   ·   People   ·   Donate
summaryrefslogtreecommitdiffstats
path: root/backend
diff options
context:
space:
mode:
authorHib Eris <hib@hiberis.nl>2010-01-05 11:58:22 (GMT)
committer Hib Eris <hib@hiberis.nl>2010-01-27 16:27:22 (GMT)
commit1ff4db77238ee4f3b89c5cd7b94e3178e11fb543 (patch)
tree711fe63e4e165923280a8a37f875065917f38aad /backend
parent9791c0d36123beb98a84974bf0f5c57e5ac0bbd1 (diff)
[dvi] Let kpathsea use ANSI C str(r)chr() instead of (r)index()
Diffstat (limited to 'backend')
-rw-r--r--backend/dvi/mdvi-lib/private.h13
1 files changed, 13 insertions, 0 deletions
diff --git a/backend/dvi/mdvi-lib/private.h b/backend/dvi/mdvi-lib/private.h
index c547cd2..5995f49 100644
--- a/backend/dvi/mdvi-lib/private.h
+++ b/backend/dvi/mdvi-lib/private.h
@@ -19,6 +19,19 @@
#define _MDVI_PRIVATE_H 1
#define HAVE_PROTOTYPES 1
+
+#if STDC_HEADERS
+# /* kpathsea's headers (wrongly!) redefine strchr() and strrchr() to
+# non ANSI C functions if HAVE_STRCHR and HAVE_STRRCHR are not defined.
+# */
+# ifndef HAVE_STRCHR
+# define HAVE_STRCHR
+# endif
+# ifndef HAVE_STRRCHR
+# define HAVE_STRRCHR
+# endif
+#endif
+
#include <kpathsea/debug.h>
#include <kpathsea/tex-file.h>
#include <kpathsea/tex-glyph.h>