#46225: tcc build failures because of CHAR_MAX redefinition Open Date: 2022-12-06 22:10 Last Update: 2022-12-06 22:24 URL for this Ticket: https://osdn.net//projects/freeciv/ticket/46225 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46225 --------------------------------------------------------------------- Last Changes/Comment on this Ticket: 2022-12-06 22:24 Updated by: cazfi * Owner Update from (None) to cazfi * Resolution Update from None to Accepted Comment: Applies also to S2_6 --------------------------------------------------------------------- Ticket Status: Reporter: cazfi Owner: cazfi Type: Bugs Status: Open [Owner assigned] Priority: 6 MileStone: 3.0.5 Component: Bootstrap Severity: 5 - Medium Resolution: Accepted --------------------------------------------------------------------- Ticket details: 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. -- Ticket information of Freeciv project Freeciv Project is hosted on OSDN Project URL: https://osdn.net/projects/freeciv/ OSDN: https://osdn.net URL for this Ticket: https://osdn.net/projects/freeciv/ticket/46225 RSS feed for this Ticket: https://osdn.net/ticket/ticket_rss.php?group_id=12505&tid=46225