aboutsummaryrefslogtreecommitdiff
path: root/winsup/cygwin
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2009-03-24 13:21:23 +0000
committerCorinna Vinschen <corinna@vinschen.de>2009-03-24 13:21:23 +0000
commit10558efdef10633559c77bddd6e79b22fd883ce5 (patch)
tree0a5d10d9cafadeda48228385b0997c1c6cb91c5f /winsup/cygwin
parent1c6743b74d5dc40545daa4b18577ae304340a446 (diff)
downloadnewlib-10558efdef10633559c77bddd6e79b22fd883ce5.zip
newlib-10558efdef10633559c77bddd6e79b22fd883ce5.tar.gz
newlib-10558efdef10633559c77bddd6e79b22fd883ce5.tar.bz2
* wchar.h: Remove erroneous "C" specifier from extern declaration.
Diffstat (limited to 'winsup/cygwin')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/wchar.h21
2 files changed, 15 insertions, 10 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index dea7f3d..a2aeff7 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2009-03-24 Corinna Vinschen <corinna@vinschen.de>
+ * wchar.h: Remove erroneous "C" specifier from extern declaration.
+
+2009-03-24 Corinna Vinschen <corinna@vinschen.de>
+
* ctype.cc (_CTYPE_DATA_0_127): Add _B class to TAB character.
(__ctype_default): New character class array for default ASCII
character set.
diff --git a/winsup/cygwin/wchar.h b/winsup/cygwin/wchar.h
index 2ad83e1..80e8a0e 100644
--- a/winsup/cygwin/wchar.h
+++ b/winsup/cygwin/wchar.h
@@ -17,22 +17,23 @@ details. */
extern "C" {
#endif
-extern "C" int __utf8_wctomb (struct _reent *, char *, wchar_t,
- const char *, mbstate_t *);
-
typedef int mbtowc_f (struct _reent *, wchar_t *, const char *, size_t,
const char *, mbstate_t *);
typedef mbtowc_f *mbtowc_p;
-extern "C" mbtowc_p __mbtowc;
-extern "C" mbtowc_f __ascii_mbtowc;
-extern "C" mbtowc_f __utf8_mbtowc;
-extern "C" mbtowc_f __iso_mbtowc;
-extern "C" mbtowc_f __cp_mbtowc;
+extern int __utf8_wctomb (struct _reent *, char *, wchar_t,
+ const char *, mbstate_t *);
+
+extern int (*__mbtowc) (struct _reent *, wchar_t *, const char *, size_t,
+ const char *, mbstate_t *);
+extern mbtowc_f __ascii_mbtowc;
+extern mbtowc_f __utf8_mbtowc;
+extern mbtowc_f __iso_mbtowc;
+extern mbtowc_f __cp_mbtowc;
-extern "C" char *__locale_charset ();
+extern char *__locale_charset ();
-extern "C" mbtowc_p __set_charset_from_codepage (UINT cp, char *charset);
+extern mbtowc_p __set_charset_from_codepage (UINT cp, char *charset);
#ifdef __cplusplus
}