tcc build failures because of CHAR_MAX redefinition
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.
Applies also to S2_6