First failing file is console.c, and I've tracked it down to the fact that readline.h is included there before support.h -> zlib.h -> ... -> limits.h
When limits.h finally gets included, it tries to define CHAR_MAX unconditionally. readline.h had already caused it to be defined. Though readline defines it only if its non already set, with this include order it gets set there.
Build with tcc fails.
First failing file is console.c, and I've tracked it down to the fact that readline.h is included there before support.h -> zlib.h -> ... -> limits.h
When limits.h finally gets included, it tries to define CHAR_MAX unconditionally. readline.h had already caused it to be defined. Though readline defines it only if its non already set, with this include order it gets set there.