re PR libstdc++/78110 (freestanding libstdc++ fails to compile)
2016-10-26 Bernd Edlinger <bernd.edlinger@hotmail.de> PR libstdc++/78110 * libsupc++/new_opa.cc: Don't include <malloc.h> in a free standing environment. Declare memalign directly in that case. From-SVN: r241591
This commit is contained in:
parent
6d5c37d004
commit
a0019047b8
|
@ -1,3 +1,9 @@
|
|||
2016-10-26 Bernd Edlinger <bernd.edlinger@hotmail.de>
|
||||
|
||||
PR libstdc++/78110
|
||||
* libsupc++/new_opa.cc: Don't include <malloc.h> in a free standing
|
||||
environment. Declare memalign directly in that case.
|
||||
|
||||
2016-10-26 Jonathan Wakely <jwakely@redhat.com>
|
||||
|
||||
* testsuite/experimental/filesystem/iterators/pop.cc: Remove
|
||||
|
|
|
@ -48,7 +48,11 @@ aligned_alloc (std::size_t al, std::size_t sz)
|
|||
return nullptr;
|
||||
}
|
||||
#elif _GLIBCXX_HAVE_MEMALIGN
|
||||
#if _GLIBCXX_HOSTED
|
||||
#include <malloc.h>
|
||||
#else
|
||||
extern "C" void *memalign(std::size_t boundary, std::size_t size);
|
||||
#endif
|
||||
#define aligned_alloc memalign
|
||||
#else
|
||||
// The C library doesn't provide any aligned allocation functions, declare
|
||||
|
|
Loading…
Reference in New Issue