This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Ada fixes for mingw32 (1/6)
- From: Danny Smith <danny_r_smith_2001 at yahoo dot co dot nz>
- To: GCC Patches <gcc-patches at gcc dot gnu dot org>
- Cc: charlet at act-europe dot fr
- Date: Wed, 22 Oct 2003 19:31:19 +1000 (EST)
- Subject: PATCH: Ada fixes for mingw32 (1/6)
Hello,
This patch gets declaration of getch and kbhit from standard mingw32
header conio.h. and removes warning about implicit declaration.
Danny
ada/Changelog
2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
* sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
Index: sysdep.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/sysdep.c,v
retrieving revision 1.10
diff -c -p -3 -r1.10 sysdep.c
*** sysdep.c 21 Oct 2003 13:42:22 -0000 1.10
--- sysdep.c 22 Oct 2003 09:25:58 -0000
*************** __gnat_ttyname (filedes)
*** 298,303 ****
--- 298,305 ----
#ifdef __MINGW32__
#if OLD_MINGW
#include <termios.h>
+ #else
+ #include <conio.h> /* for getch(), kbhit() */
#endif
#else
#include <termios.h>
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.