OSDN Git Service

2002-11-04 Jeff Johnston <jjohnstn@redhat.com>
authorjjohnstn <jjohnstn>
Mon, 4 Nov 2002 19:04:08 +0000 (19:04 +0000)
committerjjohnstn <jjohnstn>
Mon, 4 Nov 2002 19:04:08 +0000 (19:04 +0000)
        * libc/include/wchar.h: Add extern "C" specifier if C++.
        * libc/include/wctype.h: Ditto.

newlib/ChangeLog
newlib/libc/include/wchar.h
newlib/libc/include/wctype.h

index 6bf29c4..98ffece 100644 (file)
@@ -1,3 +1,8 @@
+2002-11-04  Jeff Johnston  <jjohnstn@redhat.com>
+
+        * libc/include/wchar.h: Add extern "C" specifier if C++.
+        * libc/include/wctype.h: Ditto.
+
 2002-10-18  Jeff Johnston  <jjohnstn@redhat.com>
 
         * testsuite/newlib.wctype/tiswctype.c: New test case.
index f75fe31..2c5fd0e 100644 (file)
 #endif
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef _MBSTATE_T
 #define _MBSTATE_T
 typedef _mbstate_t mbstate_t;
@@ -65,4 +69,8 @@ wchar_t       *_EXFUN(wmemcpy, (wchar_t * , const wchar_t * , size_t));
 wchar_t        *_EXFUN(wmemmove, (wchar_t *, const wchar_t *, size_t));
 wchar_t        *_EXFUN(wmemset, (wchar_t *, wchar_t, size_t));
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _WCHAR_H_ */
index 77f10e4..15aec00 100644 (file)
 # define WEOF ((wint_t)-1)
 #endif
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #ifndef _WCTYPE_T
 #define _WCTYPE_T
 typedef int wctype_t;
@@ -40,4 +44,8 @@ wint_t        _EXFUN(towlower, (wint_t));
 wctrans_t _EXFUN(wctrans, (const char *));
 wctype_t _EXFUN(wctype, (const char *));
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _WCTYPE_H_ */