projects
/
gnulib.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7f69123
)
Guard some #includes with `#if HAVE_...'.
author
Jim Meyering
<jim@meyering.net>
Wed, 1 Mar 2000 13:21:23 +0000
(13:21 +0000)
committer
Jim Meyering
<jim@meyering.net>
Wed, 1 Mar 2000 13:21:23 +0000
(13:21 +0000)
lib/localcharset.c
patch
|
blob
|
history
diff --git
a/lib/localcharset.c
b/lib/localcharset.c
index
0005910
..
86f43b5
100644
(file)
--- 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