blob: 602ef5f6117f42915839b964373f7dd24a1b149c (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
|
Add missing string protos.
* src/guess.c:150:12: warning: implicit declaration of function ‘strncmp’ [-Wimplicit-function-declaration]
* src/guess.c:218:22: warning: implicit declaration of function ‘strcmp’ [-Wimplicit-function-declaration]
* src/guesslocale.c:42:9: warning: implicit declaration of function ‘toupper’ [-Wimplicit-function-declaration]
diff --git a/src/guess.c b/src/guess.c
index facd95e..555acd3 100644
--- a/src/guess.c
+++ b/src/guess.c
@@ -21,6 +21,7 @@
*/
#include <stdio.h>
+#include <string.h> /* strcmp */
#include <import.h>
#include <decode.h>
diff --git a/src/guesslocale.c b/src/guesslocale.c
index 7974c88..c259723 100644
--- a/src/guesslocale.c
+++ b/src/guesslocale.c
@@ -29,6 +29,7 @@
#include <langinfo.h>
#endif
+#include <ctype.h> /* toupper */
#include <import.h>
#include <ctable.h>
#include <begin.h>
|