changeset 2304:9bddfd20456d

Guard some #includes with `#if HAVE_...'.
author Jim Meyering <jim@meyering.net>
date Wed, 01 Mar 2000 13:21:23 +0000
parents 295e005b5209
children 463a686cf218
files lib/localcharset.c
diffstat 1 files changed, 9 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/lib/localcharset.c
+++ b/lib/localcharset.c
@@ -23,9 +23,16 @@
 # include <config.h>
 #endif
 
-#include <stddef.h>
+#if HAVE_STDDEF_H
+# include <stddef.h>
+#endif
+
 #include <stdio.h>
-#include <string.h>
+#if HAVE_STRING_H
+# include <string.h>
+#else
+# include <strings.h>
+#endif
 #if HAVE_STDLIB_H
 # include <stdlib.h>
 #endif