[uClibc] ";" in __PUTC()
Secret Stage
ikaruga at cyberspace.org
Wed Nov 5 19:05:17 UTC 2003
Using uClibc source from uClibc-20031029.tar.bz2
The __PUTC macro defined in uClibc_stdio.h has ";" at the end of line
literally:
#ifdef __STDIO_PUTC_MACRO
#define __PUTC(c, stream) ( ((stream)->bufpos < (stream)->bufputc) \
? (*(stream)->bufpos++) = (c) \
: fputc_unlocked((c),(stream)) )
#else /* __STDIO_PUTC_MACRO */
#define __PUTC(c, stream) fputc_unlocked(c, stream);
#endif /* __STDIO_PUTC_MACRO */
Which causes syntax errors in uClibc itself (for example putspent.c)
and other software (for example gcc, binutils), when building uClibc
with no getc() / putc() macro.
More information about the uClibc
mailing list