]> www.fi.muni.cz Git - evince.git/commitdiff
[dvi] Let kpathsea use ANSI C str(r)chr() instead of (r)index()
authorHib Eris <hib@hiberis.nl>
Tue, 5 Jan 2010 11:58:22 +0000 (12:58 +0100)
committerHib Eris <hib@hiberis.nl>
Wed, 27 Jan 2010 16:27:22 +0000 (17:27 +0100)
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>