This is the mail archive of the libc-help@sourceware.org mailing list for the glibc project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]