libc bug report--minimal

Carlos O'Donell carlos@systemhalted.org
Mon Jun 22 12:44:00 GMT 2009


On Wed, Jun 17, 2009 at 5:37 PM, JohnT<jrt@worldlinc.net> wrote:
> 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.

The GNU C library is not used on windows. Instead you should send this
bug report to the MinGW team since it's their runtime which is being
used on Windows.

Thanks.

Cheers,
Carlos.



More information about the Libc-help mailing list