Closed subzerofun closed 7 years ago
In the OS X makefile class, add -std=c++14
to CFLAGS (-std=c++11 is insufficient because of std::make_unique, which was overlooked in C++11).
In bitops.cpp, replace the two instances of unsigned char(0)
with static_cast<unsigned char>(0)
. In addition, replace #include <stdio.h>
with #include <cstdio>
. This gets packjpg to compile on macos for me using the macos makefile.
These compilation issues were caused by my submitting changes that compiled on MSVC without checking macos as well.
From the source folder, i changed "Makefile" to "Makefile_other" and the "Makefile_osx" to "Makefile".
Then ran "make". These are the results: