summaryrefslogtreecommitdiffstats
path: root/libstdc++-v3
diff options
context:
space:
mode:
authorbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-10 20:23:27 +0000
committerbkoz <bkoz@138bc75d-0d04-0410-961f-82ee72b054a4>2000-05-10 20:23:27 +0000
commitb25ceadc0b851a64cc6fcfd2cc305867ca5fb3e8 (patch)
tree331c206ff8fe62c73401a1fbd12bed2fe8ac4eb1 /libstdc++-v3
parent76ef46f33a1fdb6ca224e000ce8755b9a38bd4ff (diff)
downloadppe42-gcc-b25ceadc0b851a64cc6fcfd2cc305867ca5fb3e8.tar.gz
ppe42-gcc-b25ceadc0b851a64cc6fcfd2cc305867ca5fb3e8.zip
2000-05-10 Benjamin Kosnik <bkoz@redhat.com>
Finish up FreeBSD4.0 support. * config/bsd/ctype.cc: Scope out toupper, tolower calls. * config/generic/ctype.cc: And here. * testsuite/21_strings/char_traits.cc (test02): Guard with _GLIBCPP_USE_WCHAR_T. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@33831 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3')
-rw-r--r--libstdc++-v3/ChangeLog8
-rw-r--r--libstdc++-v3/config/bsd/ctype.cc8
-rw-r--r--libstdc++-v3/config/generic/ctype.cc8
-rw-r--r--libstdc++-v3/testsuite/21_strings/char_traits.cc5
4 files changed, 20 insertions, 9 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index e7b94d1d6f3..9d6b1eeb0ae 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,11 @@
+2000-05-10 Benjamin Kosnik <bkoz@redhat.com>
+
+ Finish up FreeBSD4.0 support.
+ * config/bsd/ctype.cc: Scope out toupper, tolower calls.
+ * config/generic/ctype.cc: And here.
+ * testsuite/21_strings/char_traits.cc (test02): Guard with
+ _GLIBCPP_USE_WCHAR_T.
+
2000-05-09 Benjamin Kosnik <bkoz@gnu.org>
* acinclude.m4 (GLIBCPP_CHECK_CPU): Change powerpc bits to
diff --git a/libstdc++-v3/config/bsd/ctype.cc b/libstdc++-v3/config/bsd/ctype.cc
index 5695dcd300f..01a73157d26 100644
--- a/libstdc++-v3/config/bsd/ctype.cc
+++ b/libstdc++-v3/config/bsd/ctype.cc
@@ -42,14 +42,14 @@
char
ctype<char>::do_toupper(char __c) const
- { return toupper((int) __c); }
+ { return ::toupper((int) __c); }
const char*
ctype<char>::do_toupper(char* __low, const char* __high) const
{
while (__low < __high)
{
- *__low = toupper((int) *__low);
+ *__low = ::toupper((int) *__low);
++__low;
}
return __high;
@@ -57,14 +57,14 @@
char
ctype<char>::do_tolower(char __c) const
- { return tolower((int) __c); }
+ { return ::tolower((int) __c); }
const char*
ctype<char>::do_tolower(char* __low, const char* __high) const
{
while (__low < __high)
{
- *__low = tolower((int) *__low);
+ *__low = ::tolower((int) *__low);
++__low;
}
return __high;
diff --git a/libstdc++-v3/config/generic/ctype.cc b/libstdc++-v3/config/generic/ctype.cc
index dd7fc1a7704..0bf6b6be040 100644
--- a/libstdc++-v3/config/generic/ctype.cc
+++ b/libstdc++-v3/config/generic/ctype.cc
@@ -42,14 +42,14 @@
char
ctype<char>::do_toupper(char __c) const
- { return toupper((int) __c); }
+ { return ::toupper((int) __c); }
const char*
ctype<char>::do_toupper(char* __low, const char* __high) const
{
while (__low < __high)
{
- *__low = toupper((int) *__low);
+ *__low = ::toupper((int) *__low);
++__low;
}
return __high;
@@ -57,14 +57,14 @@
char
ctype<char>::do_tolower(char __c) const
- { return tolower((int) __c); }
+ { return ::tolower((int) __c); }
const char*
ctype<char>::do_tolower(char* __low, const char* __high) const
{
while (__low < __high)
{
- *__low = tolower((int) *__low);
+ *__low = ::tolower((int) *__low);
++__low;
}
return __high;
diff --git a/libstdc++-v3/testsuite/21_strings/char_traits.cc b/libstdc++-v3/testsuite/21_strings/char_traits.cc
index 493e4a70099..0ad8425c7bb 100644
--- a/libstdc++-v3/testsuite/21_strings/char_traits.cc
+++ b/libstdc++-v3/testsuite/21_strings/char_traits.cc
@@ -109,6 +109,7 @@ int test01(void)
return test;
}
+#if _GLIBCPP_USE_WCHAR_T
int test02(void)
{
bool test = true;
@@ -193,12 +194,14 @@ int test02(void)
return test;
}
-
+#endif //_GLIBCPP_USE_WCHAR_T
int main()
{
test01();
+#if _GLIBCPP_USE_WCHAR_T
test02();
+#endif
}
OpenPOWER on IntegriCloud