victorvde / jpeg2png

silky smooth JPEG decoding
GNU General Public License v3.0
468 stars 26 forks source link

macos doesn't have aligned_alloc, so use the posix variant #12

Open sandsmark opened 4 years ago

sandsmark commented 4 years ago

Solves same problem as https://github.com/victorvde/jpeg2png/pull/11 but without pulling in boost.

Haven't actually tested it since I don't have macos, but People On The Internetâ„¢ say that posix_memalign is available on macos.

sandsmark commented 4 years ago

I checked, and boost uses posix_memalign on macos.

NeRdTheNed commented 3 years ago

Tested on MacOS Mojave, seems to work!