diff options
author | Benjamin Kosnik <bkoz@redhat.com> | 2002-06-19 15:19:53 +0000 |
---|---|---|
committer | Benjamin Kosnik <bkoz@redhat.com> | 2002-06-19 15:19:53 +0000 |
commit | be46f2490a9b81ad58600b1e2b230346a8c311a4 (patch) | |
tree | f6a252bc522acab89485cfd3ab34f6038957e14c /libstdc++-v3/libsupc++ | |
parent | bc53e8526e7ceab46f463b04ade7d4b3ebdedec3 (diff) |
2002-06-18 Benjamin Kosnik <bkoz@redhat.com>
* include/c/std_cwchar.h: Guard. Add mbstate_t bits.
* include/c/std_cwctype.h: Guard.
* libsupc++/eh_alloc.cc: Tweak include order.
* libsupc++/pure.cc: Use cstdio.
* libsupc++/new_op.cc: Remove malloc forward declaration, as
cstdlib brings it in. Use std::malloc.
* src/Makefile.am (sources): Remove cmath.cc.
* src/Makefile.in: Regenerate.
* src/cmath.cc: Remove.
git-svn-id: https://gcc.gnu.org/svn/gcc/trunk@54782 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libstdc++-v3/libsupc++')
-rw-r--r-- | libstdc++-v3/libsupc++/eh_alloc.cc | 2 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/new_op.cc | 4 | ||||
-rw-r--r-- | libstdc++-v3/libsupc++/pure.cc | 4 |
3 files changed, 5 insertions, 5 deletions
diff --git a/libstdc++-v3/libsupc++/eh_alloc.cc b/libstdc++-v3/libsupc++/eh_alloc.cc index 1f59ec46394..b328acbc914 100644 --- a/libstdc++-v3/libsupc++/eh_alloc.cc +++ b/libstdc++-v3/libsupc++/eh_alloc.cc @@ -30,10 +30,10 @@ // This is derived from the C++ ABI for IA-64. Where we diverge // for cross-architecture compatibility are noted with "@@@". -#include <exception> #include <cstdlib> #include <cstring> #include <climits> +#include <exception> #include "unwind-cxx.h" #include "bits/c++config.h" #include "bits/gthr.h" diff --git a/libstdc++-v3/libsupc++/new_op.cc b/libstdc++-v3/libsupc++/new_op.cc index df43e6e4576..6e83b39bb1f 100644 --- a/libstdc++-v3/libsupc++/new_op.cc +++ b/libstdc++-v3/libsupc++/new_op.cc @@ -1,5 +1,5 @@ // Support routines for the -*- C++ -*- dynamic memory management. -// Copyright (C) 1997, 1998, 1999, 2000, 2001 Free Software Foundation +// Copyright (C) 1997, 1998, 1999, 2000, 2001, 2002 Free Software Foundation // // This file is part of GNU CC. // @@ -33,8 +33,8 @@ using std::new_handler; using std::bad_alloc; +using std::malloc; -extern "C" void *malloc (std::size_t); extern new_handler __new_handler; void * diff --git a/libstdc++-v3/libsupc++/pure.cc b/libstdc++-v3/libsupc++/pure.cc index 5f9b3c868cc..1f351334b74 100644 --- a/libstdc++-v3/libsupc++/pure.cc +++ b/libstdc++-v3/libsupc++/pure.cc @@ -39,8 +39,8 @@ /*# define write(fd, buf, n) __write((fd), (buf), (n))*/ # endif #else -# include <stdio.h> -# define writestr(str) fputs(str, stderr) +# include <cstdio> +# define writestr(str) std::fputs(str, stderr) #endif extern "C" void |