]> www.fi.muni.cz Git - evince.git/blobdiff - backend/dvi/mdvi-lib/private.h
[windows] Guess texmf.cnf location from mktexpk executable
[evince.git] / backend / dvi / mdvi-lib / private.h
index c547cd2d639e3955bea015918962021d5f4a7da7..6564c25346766422bba9d7147b853e5aae716e7c 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>
@@ -26,6 +39,7 @@
 #include <kpathsea/proginit.h>
 #include <kpathsea/progname.h>
 #include <kpathsea/tex-make.h>
+#include <kpathsea/lib.h>
 
 #define ISSP(p)                (*(p) == ' ' || *(p) == '\t')
 #define SKIPSP(p)      while(ISSP(p)) p++