r263409 - in /trunk/libstdc++-v3: ChangeLog lib...

redi@gcc.gnu.org redi@gcc.gnu.org
Wed Aug 8 15:16:00 GMT 2018


Author: redi
Date: Wed Aug  8 15:16:43 2018
New Revision: 263409

URL: https://gcc.gnu.org/viewcvs?rev=263409&root=gcc&view=rev
Log:
Prevent internal aligned_alloc clashing with libc version

If configure fails to detect aligned_alloc we will try to define our
own in new_opa.cc but that could clash with the libcversion in
<stdlib.h>. Use a namespace to keep them distinct.

	* libsupc++/new_opa.cc (aligned_alloc): Declare inside namespace to
	avoid clashing with an ::aligned_alloc function that was not detected
	by configure.

Modified:
    trunk/libstdc++-v3/ChangeLog
    trunk/libstdc++-v3/libsupc++/new_opa.cc



More information about the Libstdc++-cvs mailing list