This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
libc bug report--minimal
- From: JohnT <jrt at worldlinc dot net>
- To: libc-help <libc-help at sourceware dot org>
- Date: Wed, 17 Jun 2009 16:37:43 -0500
- Subject: libc bug report--minimal
Error in gnu libc files curses.h and conio.h on MSDOS/Windows
curses.h has the line #define getch(void) wgetch(stdscr)
defining getch(void) as a macro, but in conio.h, the term to expand is
int getch();
Because macro expansion works on strings (regular expressions?), the
preprocessor doesn't recognize that getch() and getch(void) have the
same meaning. To fix the problem, maybe change the conio.h line to
int getch(void); /* this string must match definition in curses.h */
The above change worked for me.
This error is in the libc libraries included with mingw 3.4.5 and djgpp
4.3.2.