From: Erik P. <epe...@iv...> - 2007-05-11 15:40:11
|
On Fri, 11 May 2007, Philipp Klaus Krause wrote: > > I would say that is should be closed, since the "keyword inline should > > not cause an error" request is fulfilled. > > I just tried to compile the example from the bug report: > > int a; > > inline void f(void) > { > a++; > } > > I still see the error: > > sdcc -c bug.c > bug.c:3: syntax error: token -> 'void' ; column 11 > sdcc --version > SDCC : mcs51/gbz80/z80/avr/ds390/pic16/pic14/TININative/xa51/ds400/hc08 > 2.7.0 #4802 (May 11 2007) (UNIX) You will need to enable C99 keywords with the --std-c99 or --std-sdcc99 option, or use the corresponding #pragma. Erik |