Ticket #46225

tcc build failures because of CHAR_MAX redefinition

Eröffnet am: 2022-12-07 05:10 Letztes Update: 2022-12-10 10:24

Auswertung:
Verantwortlicher:
Typ:
Status:
Geschlossen
Komponente:
Meilenstein:
Priorität:
6
Schweregrad:
5 - Mittel
Lösung:
Gefixt
Datei:
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-Verlauf (3/5 Historien)

2022-12-07 05:10 Aktualisiert von: cazfi
  • New Ticket "tcc build failures because of CHAR_MAX redefinition" created
2022-12-07 05:10 Aktualisiert von: cazfi
  • Meilenstein Update from (Keine) to 3.0.5 (closed)
  • Priorität Update from 5 - Mittel to 6
2022-12-07 05:24 Aktualisiert von: cazfi
  • Verantwortlicher Update from (Keine) to cazfi
  • Lösung Update from Keine to Accepted
Kommentar

Applies also to S2_6

2022-12-10 10:24 Aktualisiert von: cazfi
  • Status Update from Offen to Geschlossen
  • Lösung Update from Accepted to Gefixt

Bearbeiten

You are not logged in. I you are not logged in, your comment will be treated as an anonymous post. » Anmelden