aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernardo Innocenti <bernie@develer.com>2003-09-06 03:01:01 +0200
committerBernardo Innocenti <bernie@gcc.gnu.org>2003-09-06 03:01:01 +0200
commite7f115de8d4a52f9dbeb47e87ddac62a978fda60 (patch)
tree8c3df4c8783287eae5fbc05b23e0e7e31b5b66c8
parente86ac6af9abdff1f088ce0776e142f90913bfe17 (diff)
downloadgcc-e7f115de8d4a52f9dbeb47e87ddac62a978fda60.zip
gcc-e7f115de8d4a52f9dbeb47e87ddac62a978fda60.tar.gz
gcc-e7f115de8d4a52f9dbeb47e87ddac62a978fda60.tar.bz2
* include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
From-SVN: r71127
-rw-r--r--libstdc++-v3/ChangeLog4
-rw-r--r--libstdc++-v3/include/c_std/std_cstdlib.h4
2 files changed, 8 insertions, 0 deletions
diff --git a/libstdc++-v3/ChangeLog b/libstdc++-v3/ChangeLog
index 99022ec..b29d878 100644
--- a/libstdc++-v3/ChangeLog
+++ b/libstdc++-v3/ChangeLog
@@ -1,3 +1,7 @@
+2003-08-09 Bernardo Innocenti <bernie@develer.com>
+
+ * include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
+
2003-09-04 Petur Runolfsson <peturr02@ru.is>
PR libstdc++/9028
diff --git a/libstdc++-v3/include/c_std/std_cstdlib.h b/libstdc++-v3/include/c_std/std_cstdlib.h
index c942efb..14b3b90 100644
--- a/libstdc++-v3/include/c_std/std_cstdlib.h
+++ b/libstdc++-v3/include/c_std/std_cstdlib.h
@@ -101,9 +101,11 @@ namespace std
using ::labs;
using ::ldiv;
using ::malloc;
+#ifdef _GLIBCXX_HAVE_MBSTATE_T
using ::mblen;
using ::mbstowcs;
using ::mbtowc;
+#endif // _GLIBCXX_HAVE_MBSTATE_T
using ::qsort;
using ::rand;
using ::realloc;
@@ -112,8 +114,10 @@ namespace std
using ::strtol;
using ::strtoul;
using ::system;
+#ifdef _GLIBCXX_USE_WCHAR_T
using ::wcstombs;
using ::wctomb;
+#endif // _GLIBCXX_USE_WCHAR_T
inline long
abs(long __i) { return labs(__i); }