Author: sebor
Date: Sat Jul 7 15:43:51 2007
New Revision: 554275
URL: http://svn.apache.org/viewvc?view=rev&rev=554275
Log:
2007-07-07 Martin Sebor <[EMAIL PROTECTED]>
STDCXX-125
* wchar.h (wctob): Added a declaration for wctob() when it's not
provided in the system header.
Modified:
incubator/stdcxx/trunk/include/ansi/wchar.h
Modified: incubator/stdcxx/trunk/include/ansi/wchar.h
URL:
http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/wchar.h?view=diff&rev=554275&r1=554274&r2=554275
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/wchar.h (original)
+++ incubator/stdcxx/trunk/include/ansi/wchar.h Sat Jul 7 15:43:51 2007
@@ -198,4 +198,16 @@
# include _RWSTD_ANSI_C_WCHAR_H
+extern "C" {
+
+// add missing declarations for functions known to be defined
+// in the system libc
+
+#if defined (_RWSTD_NO_WCTOB) && !defined (_RWSTD_NO_WCTOB_IN_LIBC)
+int wctob (_RWSTD_WINT_T);
+# undef _RWSTD_NO_WCTOB
+#endif // _RWSTD_NO_WCTOB && !_RWSTD_NO_WCTOB_IN_LIBC
+
+} // extern "C"
+
#endif // _RWSTD_NO_DEPRECATED_C_HEADERS