Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 764056
Collapse All | Expand All

(-)a/common/almalloc.cpp.ORIG (-1 / +1 lines)
Lines 20-26 Link Here
20
20
21
#if defined(HAVE_STD_ALIGNED_ALLOC)
21
#if defined(HAVE_STD_ALIGNED_ALLOC)
22
    size = (size+(alignment-1))&~(alignment-1);
22
    size = (size+(alignment-1))&~(alignment-1);
23
    return std::aligned_alloc(alignment, size);
23
    return ::aligned_alloc(alignment, size);
24
#elif defined(HAVE_POSIX_MEMALIGN)
24
#elif defined(HAVE_POSIX_MEMALIGN)
25
    void *ret{};
25
    void *ret{};
26
    if(posix_memalign(&ret, alignment, size) == 0)
26
    if(posix_memalign(&ret, alignment, size) == 0)
(-)a/CMakeLists.txt.ORIG (-1 / +1 lines)
Lines 475-481 Link Here
475
check_cxx_source_compiles("#include <cstdlib>
475
check_cxx_source_compiles("#include <cstdlib>
476
int main()
476
int main()
477
{
477
{
478
    void *ptr{std::aligned_alloc(alignof(int), sizeof(int))};
478
    void *ptr{::aligned_alloc(alignof(int), sizeof(int))};
479
    std::free(ptr);
479
    std::free(ptr);
480
    return 0;
480
    return 0;
481
}" HAVE_STD_ALIGNED_ALLOC)
481
}" HAVE_STD_ALIGNED_ALLOC)

Return to bug 764056