twinaphex/genesis-next — comment on commit bce300cfdc1d18154544905d2f8fd934de1a55f4
File:  line 0
By twinaphex:

Yes, Markdown is a major pain in the ass - I have to continually write stuff like (double underscores)some_define(double underscore) t get past the 'Markdown' typesetting.

Anyways, I can find only two places in the code right now where types.h is included:

/home/twin_aphex/local-repos/genesis-next/src/sound/eq.c:#include "types.h"
/home/twin_aphex/local-repos/genesis-next/src/shared.h:#include "types.h"

if I just include stdlib.h in m68kops.h - I get this if I try to make a Linux build:

cc -o src/m68k/m68kcpu.o -c src/m68k/m68kcpu.c -O3 -DNDEBUG -fPIC -std=gnu99 -Isrc -Isrc/sound -Isrc/input_hw -Isrc/cart_hw -Isrc/cart_hw/svp -Isrc/m68k -Isrc/z80 -Isrc/ntsc -Iutils/zlib -Ilibsnes -DUSE_15BPP_RENDERING -DLSB_FIRST -DHAVE_ZLIB -D__LIBSNES__
In file included from /usr/include/stdlib.h:320:0,
from src/m68k/m68kops.h:4,
from src/m68k/m68kcpu.c:46:
/usr/include/sys/types.h:153:22: error: duplicate ‘unsigned’
/usr/include/sys/types.h:153:22: error: two or more data types in declaration specifiers

I think it would probably be prudent to rename types.h to something other than a system header file so that there can't be any possible conflicts - just as a safety measure.