OSDN Git Service

* include/c_std/std_cstdlib.h: Avoid using missing C library symbols.
authorbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Sep 2003 01:01:01 +0000 (01:01 +0000)
committerbernie <bernie@138bc75d-0d04-0410-961f-82ee72b054a4>
Sat, 6 Sep 2003 01:01:01 +0000 (01:01 +0000)
git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@71127 138bc75d-0d04-0410-961f-82ee72b054a4

libstdc++-v3/ChangeLog
libstdc++-v3/include/c_std/std_cstdlib.h

index 99022ec..b29d878 100644 (file)
@@ -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
index c942efb..14b3b90 100644 (file)
@@ -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); }