summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2007-03-31 15:23:42 +0000
committerBruno Haible <bruno@clisp.org>2007-03-31 15:23:42 +0000
commit420a9082115cf4ba510eda53ca2770c7666549f1 (patch)
treeb2805009a0b8ffe62143db92f3e8202cbc695f86 /tests
parentacb612f5879898d78df95c3802bb0c4d78b4b131 (diff)
downloadgperf-420a9082115cf4ba510eda53ca2770c7666549f1.tar.gz
Provide declaration of in_word_set.
Diffstat (limited to 'tests')
-rw-r--r--tests/test.c6
-rw-r--r--tests/test2.c6
2 files changed, 12 insertions, 0 deletions
diff --git a/tests/test.c b/tests/test.c
index fcb120c..6ee16e0 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -7,6 +7,12 @@
#include <stdio.h>
#include <string.h>
+#if defined __STDC__ || defined __cplusplus
+extern char * in_word_set (const char *, int);
+#else
+extern char * in_word_set ();
+#endif
+
#define MAX_LEN 80
int
diff --git a/tests/test2.c b/tests/test2.c
index 1cc8633..2a2c36d 100644
--- a/tests/test2.c
+++ b/tests/test2.c
@@ -20,6 +20,12 @@
# define SET_BINARY(f) (void)0
#endif
+#if defined __STDC__ || defined __cplusplus
+extern struct language * in_word_set (const char *, int);
+#else
+extern struct language * in_word_set ();
+#endif
+
#define MAX_LEN 80
int