macOS Catalina w/ command line tools can't compile
% cd src
% make
g++ -O -Wall -DVERSION="V0.4" -c -o d64dump.o d64dump.cc
g++ -O -Wall -DVERSION="V0.4" -c -o dump.o dump.cc
g++ -O -Wall -DVERSION="V0.4" -c -o misc.o misc.cc
g++ -O -Wall -DVERSION="V0.4" -c -o err.o err.cc
g++ -O -Wall -DVERSION="V0.4" -c -o d64.o d64.cc
In file included from d64.cc:22:
In file included from ./err.h:24:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/stdlib.h:100:
In file included from /Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/math.h:311:
/Library/Developer/CommandLineTools/usr/bin/../include/c++/v1/type_traits:740:29: error: redefinition of '__libcpp_is_integral
Seems to be fixed with clang 16
$ clang -v
Apple clang version 16.0.0 (clang-1600.0.26.3)
Target: arm64-apple-darwin24.1.0
Thread model: posix
InstalledDir: /Library/Developer/CommandLineTools/usr/bin