Hi Michael, On Thu, Oct 10, 2024 at 10:27:02AM +0000, Michael Pratt wrote: > As part of the processing of flex, definitions and headers > are added to output source before any literal text or generated code. > > This causes standard headers to come before config.h > unless config.h is included in a %top block instead > as specified in the flex manual, section 5.1 "Format of the Definitions". > > The %top block is non-POSIX, so using it reinforces > the requirement of "flex" over a standardized "lex" even more. > > * libcpu/i386_lex.l (%top): add flex %top block > and move config.h header inclusion to it.
configure already checks we have flex, so this is fine. Pushed, Mark