Skip to content

Build fails if aligned_alloc is not available #230

@barracuda156

Description

@barracuda156

@aous72 Could this be addressed, please? OpenJPH is a dependency for OpenEXR now, and this breakage prevents from updating the latter.
The code in

return aligned_alloc(alignment, size);
assumes aligned_alloc is guaranteed to be available, but it is wrong. C11 does not guarantee it at all, since it is supplied by the OS, not by compiler or its runtime.
Most of macOS versions do not have aligned_alloc, but have posix_memalign and malloc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions