This is the mail archive of the gcc-patches@gcc.gnu.org mailing list for the GCC 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]

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.


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