Commit 1044b043 by Phil Edwards

eh_alloc.cc (__cxa_allocate_exception): Qualify malloc with std:: .

2001-05-24  Phil Edwards  <pme@sources.redhat.com>

	* libsupc++/eh_alloc.cc (__cxa_allocate_exception):  Qualify
	malloc with std:: .
	(__cxa_free_exception):  Likewise with free.

From-SVN: r42556
parent eeff8d2c
2001-05-24 Phil Edwards <pme@sources.redhat.com>
* libsupc++/eh_alloc.cc (__cxa_allocate_exception): Qualify
malloc with std:: .
(__cxa_free_exception): Likewise with free.
2001-05-24 Mark Mitchell <mark@codesourcery.com> 2001-05-24 Mark Mitchell <mark@codesourcery.com>
* include/c_std/bin/std_cstring.h: #define away all global * include/c_std/bin/std_cstring.h: #define away all global
......
...@@ -98,7 +98,7 @@ __cxa_allocate_exception(std::size_t thrown_size) ...@@ -98,7 +98,7 @@ __cxa_allocate_exception(std::size_t thrown_size)
void *ret; void *ret;
thrown_size += sizeof (__cxa_exception); thrown_size += sizeof (__cxa_exception);
ret = malloc (thrown_size); ret = std::malloc (thrown_size);
if (! ret) if (! ret)
{ {
...@@ -158,5 +158,5 @@ __cxa_free_exception(void *vptr) ...@@ -158,5 +158,5 @@ __cxa_free_exception(void *vptr)
#endif #endif
} }
else else
free (ptr - sizeof (__cxa_exception)); std::free (ptr - sizeof (__cxa_exception));
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment