libstdc++: Fix declaration of posix_memalign for freestanding
Thanks to Jérôme Duval for noticing this. libstdc++-v3/ChangeLog: * libsupc++/new_opa.cc [!_GLIBCXX_HOSTED]: Fix declaration of posix_memalign. (cherry picked from commit 161efd677458f20d13ee1018a4d5e3964febd508)
This commit is contained in:
parent
b740c091a3
commit
75251f5091
1 changed files with 1 additions and 1 deletions
|
@ -47,7 +47,7 @@ using std::size_t;
|
|||
extern "C"
|
||||
{
|
||||
# if _GLIBCXX_HAVE_POSIX_MEMALIGN
|
||||
void *posix_memalign(void **, size_t alignment, size_t size);
|
||||
int posix_memalign(void **, size_t alignment, size_t size);
|
||||
# elif _GLIBCXX_HAVE_ALIGNED_ALLOC
|
||||
void *aligned_alloc(size_t alignment, size_t size);
|
||||
# elif _GLIBCXX_HAVE__ALIGNED_MALLOC
|
||||
|
|
Loading…
Add table
Reference in a new issue