From f246f921a348af52a8d4a55b11d55af54faed21d Mon Sep 17 00:00:00 2001
From: Erik Johansson <erik@ejohansson.se>
Date: Fri, 12 Nov 2010 09:59:05 +0100
Subject: [PATCH] Make test compile with C++ compiler

---
 tests/test.c |    8 ++++++--
 1 files changed, 6 insertions(+), 2 deletions(-)

diff --git a/tests/test.c b/tests/test.c
index 6ee16e0..0d641f2 100644
--- a/tests/test.c
+++ b/tests/test.c
@@ -8,17 +8,21 @@
 #include <string.h>
 
 #if defined __STDC__ || defined __cplusplus
-extern char * in_word_set (const char *, int);
+extern const char * in_word_set (const char *, unsigned int);
 #else
-extern char * in_word_set ();
+extern const char * in_word_set ();
 #endif
 
 #define MAX_LEN 80
 
 int
+#if defined __STDC__ || defined __cplusplus
+main (int argc, char *argv[])
+#else
 main (argc, argv)
      int   argc;
      char *argv[];
+#endif
 {
   int  verbose = argc > 1 ? 1 : 0;
   char buf[MAX_LEN];
-- 
1.7.2.3

