]> www.fi.muni.cz Git - evince.git/blobdiff - backend/dvi/mdvi-lib/private.h
[dvi] Let kpathsea use ANSI C str(r)chr() instead of (r)index()
[evince.git] / backend / dvi / mdvi-lib / private.h
index c547cd2d639e3955bea015918962021d5f4a7da7..5995f492f065703afe6d67c55494b5d64ca5f2d3 100644 (file)
 #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>