You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@stdcxx.apache.org by se...@apache.org on 2007/09/27 03:20:50 UTC
svn commit: r579864 - /incubator/stdcxx/trunk/examples/manual/ctype.cpp
Author: sebor
Date: Wed Sep 26 18:20:49 2007
New Revision: 579864
URL: http://svn.apache.org/viewvc?rev=579864&view=rev
Log:
2007-09-26 Martin Sebor <se...@roguewave.com>
* ctype.cpp (main): Parenthesized a call to ctype::toupper() to avoid
errors when the symbol is shadowed by a macro defined in libc header(s)
as happens to be the case with gcc 4 on Darwin.
Modified:
incubator/stdcxx/trunk/examples/manual/ctype.cpp
Modified: incubator/stdcxx/trunk/examples/manual/ctype.cpp
URL: http://svn.apache.org/viewvc/incubator/stdcxx/trunk/examples/manual/ctype.cpp?rev=579864&r1=579863&r2=579864&view=diff
==============================================================================
--- incubator/stdcxx/trunk/examples/manual/ctype.cpp (original)
+++ incubator/stdcxx/trunk/examples/manual/ctype.cpp Wed Sep 26 18:20:49 2007
@@ -22,7 +22,7 @@
* implied. See the License for the specific language governing
* permissions and limitations under the License.
*
- * Copyright 1994-2006 Rogue Wave Software.
+ * Copyright 1994-2007 Rogue Wave Software, Inc.
*
**************************************************************************/
@@ -49,7 +49,7 @@
<< std::endl;
// Convert characters to upper case.
- ct.toupper (s, s + sizeof s / sizeof *s);
+ (ct.toupper)(s, s + sizeof s / sizeof *s);
std::cout << s << std::endl;
return 0;