Ticket #46225

tcc build failures because of CHAR_MAX redefinition

Open Date: 2022-12-07 05:10 Last Update: 2022-12-10 10:24

Reporter:
Owner:
Type:
Status:
Closed
Component:
MileStone:
Priority:
6
Severity:
5 - Medium
Resolution:
Fixed
File:
1

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 History (3/5 Histories)

2022-12-07 05:10 Updated by: cazfi
  • New Ticket "tcc build failures because of CHAR_MAX redefinition" created
2022-12-07 05:10 Updated by: cazfi
  • Milestone Update from (None) to 3.0.5 (closed)
  • Priority Update from 5 - Medium to 6
2022-12-07 05:24 Updated by: cazfi
  • Owner Update from (None) to cazfi
  • Resolution Update from None to Accepted
Comment

Applies also to S2_6

2022-12-10 10:24 Updated by: cazfi
  • Status Update from Open to Closed
  • Resolution Update from Accepted to Fixed

Edit

Please login to add comment to this ticket » Login