From 1ff4db77238ee4f3b89c5cd7b94e3178e11fb543 Mon Sep 17 00:00:00 2001 From: Hib Eris Date: Tue, 05 Jan 2010 11:58:22 +0000 Subject: [dvi] Let kpathsea use ANSI C str(r)chr() instead of (r)index() --- (limited to 'backend') 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 #include #include -- cgit v0.9.1