about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAndreas Jaeger <aj@suse.de>2001-02-10 11:34:33 +0000
committerAndreas Jaeger <aj@suse.de>2001-02-10 11:34:33 +0000
commit630aaf07fa2c38c020a4cbdf1d90ab8caa881965 (patch)
tree81f87ed577767fe0cc3cb37d1e3493e2497d1525
parent464d97ecc5ccec24a4b36d437654cc0db33672e4 (diff)
downloadglibc-630aaf07fa2c38c020a4cbdf1d90ab8caa881965.tar.gz
glibc-630aaf07fa2c38c020a4cbdf1d90ab8caa881965.tar.xz
glibc-630aaf07fa2c38c020a4cbdf1d90ab8caa881965.zip
(func): Add prototype declarations to avoid warning.
-rw-r--r--wctype/wcfuncs.c15
1 files changed, 8 insertions, 7 deletions
diff --git a/wctype/wcfuncs.c b/wctype/wcfuncs.c
index bed70b37de..26b90258f2 100644
--- a/wctype/wcfuncs.c
+++ b/wctype/wcfuncs.c
@@ -1,4 +1,4 @@
-/* Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+/* Copyright (C) 1996,1997,1998,1999,2000,2001 Free Software Foundation, Inc.
    This file is part of the GNU C Library.
 
    The GNU C Library is free software; you can redistribute it and/or
@@ -27,12 +27,13 @@ extern const char *__ctype32_wctrans[2];
 
 /* Provide real-function versions of all the wctype macros.  */
 
-#define	func(name, type) \
-  int									      \
-  __##name (wint_t wc)							      \
-  {									      \
-    return wctype_table_lookup (__ctype32_wctype[type], wc);		      \
-  }									      \
+#define	func(name, type)					\
+  extern int __##name (wint_t __wc);				\
+  int								\
+  __##name (wint_t wc)						\
+  {								\
+    return wctype_table_lookup (__ctype32_wctype[type], wc);	\
+  }								\
   weak_alias (__##name, name)
 
 #undef iswalnum