stdcxx-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From se...@apache.org
Subject svn commit: r463010 - /incubator/stdcxx/trunk/include/ansi/cwchar
Date Wed, 11 Oct 2006 22:27:12 GMT
Author: sebor
Date: Wed Oct 11 15:27:10 2006
New Revision: 463010

URL: http://svn.apache.org/viewvc?view=rev&rev=463010
Log:
2006-10-11  Martin Sebor  <sebor@roguewave.com>

	* cwchar (wcscat, wcscpy): Used the block form of language linkage
	specification to work around an HP aCC 3.70 bug (see STDCXX-298).

Modified:
    incubator/stdcxx/trunk/include/ansi/cwchar

Modified: incubator/stdcxx/trunk/include/ansi/cwchar
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/include/ansi/cwchar?view=diff&rev=463010&r1=463009&r2=463010
==============================================================================
--- incubator/stdcxx/trunk/include/ansi/cwchar (original)
+++ incubator/stdcxx/trunk/include/ansi/cwchar Wed Oct 11 15:27:10 2006
@@ -556,7 +556,9 @@
 
 }   // namespace std
 
-extern "C" inline wchar_t* wcscat (wchar_t *__dst, const wchar_t *__src)
+extern "C" {
+
+inline wchar_t* wcscat (wchar_t *__dst, const wchar_t *__src)
 {
     wchar_t *__s = __dst;
     for (; *__s; ++__s);
@@ -564,6 +566,8 @@
     return __dst;
 }
 
+}   // extern "C"
+
 namespace std {
 
 using ::wcscat;
@@ -657,11 +661,15 @@
 
 }   // namespace std
 
-extern "C" inline wchar_t* wcscpy (wchar_t *__dst, const wchar_t *__src)
+extern "C" {
+
+inline wchar_t* wcscpy (wchar_t *__dst, const wchar_t *__src)
 {
     for (wchar_t *__s = __dst; (*__s++ = *__src++); );
     return __dst;
 }
+
+}   // extern "C"
 
 namespace std {
 



Mime
View raw message