When I compile mixed source code in c AND c++, I get a compiler error:
In file included from /opt/gendev/sgdk/inc/genesis.h:9,
from smd_test.cpp:2:
/opt/gendev/sgdk/inc/types.h:81:24: error: redeclaration of C++ built-in type ‘bool’ [-fpermissive]
81 | typedef unsigned short bool;
| ^~~~
make: *** [Makefile:191: out/smd_test.o] Error 1
When I compile mixed source code in c AND c++, I get a compiler error: