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]

Re: libc bug report--minimal


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.


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