bradleyeckert / chad

A self-hosting Forth for J1-style CPUs
Other
24 stars 4 forks source link

Mac OS #1

Closed uho closed 4 years ago

uho commented 4 years ago

Hi Brad,

Nice work! I like it a lot.

I had to tweak some things to compile chad on Mac OS (Mojave).

The state wait in flash.c has a name conflict with the wait symbol defined in /Library/Developer/CommandLineTools/SDKs/MacOSX.sdk/usr/include/sys/wait.h which is on Mac OS somehow included by #include <stdlib.h>. I renamed wait to wait_.

In TFTsim.c the symbol NULL is not defined on Mac OS unless you #include <stdlib.h>.

In iomap.c Mac OS complains about unsignedness of the buffer buf. Thus the explicit type cast.

Keep going.

Regards, Ulli