This is the mail archive of the
libc-help@sourceware.org
mailing list for the glibc project.
Re: libc bug report--minimal
- From: "Carlos O'Donell" <carlos at systemhalted dot org>
- To: JohnT <jrt at worldlinc dot net>
- Cc: libc-help <libc-help at sourceware dot org>
- Date: Mon, 22 Jun 2009 08:43:56 -0400
- Subject: Re: libc bug report--minimal
- References: <4A396227.8060705@worldlinc.net>
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.