c-embed icon indicating copy to clipboard operation
c-embed copied to clipboard

Error on 'rewind' when compiling '0_fgets'

Open gwiesenekker opened this issue 2 years ago • 0 comments

I am getting the following error when compiling '0_fgets' on Linux:

gcc main.c c-embed.o -include ../../c-embed.h -DCEMBED_TRANSLATE -o main In file included from : ./../../c-embed.h:177:6: error: conflicting types for ‘rewind’ 177 | void rewind(EFILE* e){ | ^~~~~~ In file included from ./../../c-embed.h:14, from : /usr/include/stdio.h:694:13: note: previous declaration of ‘rewind’ was here 694 | extern void rewind (FILE *__stream); | ^~~~~~ make: *** [makefile:19: build] Error 1

Looking at c-embed.h I guess 'rewind' should be renamed to 'erewind'?

Regards, GW

gwiesenekker avatar Dec 19 '22 04:12 gwiesenekker