|
From: Peiyuan S. <squ...@gm...> - 2025-12-16 12:32:16
|
The winnt.h header file in mingw-w64 also conflicts with "define B". https://github.com/mingw-w64/mingw-w64/blob/a850053eae52a663131d2c551133f277fbba47b7/mingw-w64-headers%2Finclude%2Fwinnt.h#L2255-L2265 Philipp Klaus Krause <pk...@sp...> 于 2025年12月16日周二 19:41写道: > Am 09.12.25 um 16:27 schrieb Joel Holdsworth via sdcc-devel: > >>> > >>> 1. Problems with "#define B" in ucsim. > >> > >> I had run into this when cross-compiling myself, buthadn't tracked it > >> down yet. I wonder if it would be sufficient to change the order of > >> #include, so standard headers (and thus GCC includes) come before the > >> #define B instead of changing B everywhere. I guess ultimately Daniel > >> will have to make this decision (and maybe we'll want to complain to > >> GCC, too). > > > > I think it would be a problem no matter which order the #includes occur. > > So long as "B" is #define'd somewhere, then "B" cannot be used anywhere > > without being replaced. > > > > The B is used as parameter name in the GCC header. So if the #define B > happens after the #include that brings that header in, there will be no > problem. Anyway, Daniel has dealt with it on the uCsim side, an I'll > file a GCC bug report later today. > > Philipp > > > > _______________________________________________ > sdcc-devel mailing list > sdc...@li... > https://lists.sourceforge.net/lists/listinfo/sdcc-devel > |