From f3f2cc8386868f51440c45210098f65f9787449a Mon Sep 17 00:00:00 2001 From: Darren Tucker Date: Mon, 11 Jul 2016 17:23:38 +1000 Subject: Check for wchar.h and langinfo.h Wrap includes in the appropriate #ifdefs. --- utf8.c | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'utf8.c') diff --git a/utf8.c b/utf8.c index 6445b3766..f563d3738 100644 --- a/utf8.c +++ b/utf8.c @@ -23,7 +23,9 @@ #include "includes.h" #include -#include +#ifdef HAVE_LANGINFO_H +# include +#endif #include #include #include @@ -32,7 +34,9 @@ #if defined(HAVE_STRNVIS) && defined(HAVE_VIS_H) && !defined(BROKEN_STRNVIS) # include #endif -#include +#ifdef HAVE_WCHAR_H +# include +#endif #include "utf8.h" -- cgit v1.2.3