This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
PATCH: Ada fixes for mingw32- ctrl_c.c (5/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:44:22 +1000 (EST)
- Subject: PATCH: Ada fixes for mingw32- ctrl_c.c (5/6)
Hello,
The declaration of static function __gnat_int_handler in ctrl_c
conflicts with its definition for mingw32 target, causing error. As far
as I can see, the declaration isn't needed, since it is defined before
it is used anyway. This removes it and allows building of
gnatlibs_and_tools on mingw32.
Danny
ada/Changelog
2003-10-22 Danny Smith <dannysmith@users.sourceforge.net>
* ctrl_c.c (__gnat_int_handler): Remove declaration.
Index: ctrl_c.c
===================================================================
RCS file: /cvs/gcc/gcc/gcc/ada/ctrl_c.c,v
retrieving revision 1.1
diff -c -3 -p -r1.1 ctrl_c.c
*** ctrl_c.c 21 Oct 2003 13:41:58 -0000 1.1
--- ctrl_c.c 22 Oct 2003 07:41:04 -0000
*************** void __gnat_install_int_handler (void (*
*** 48,55 ****
/* __gnat_uninstall_int_handler will reinstall the original handler */
void __gnat_uninstall_int_handler (void);
- static void __gnat_int_handler (int);
-
/* POSIX implementation */
#if (defined (_AIX) || defined (unix)) && !defined (__vxworks)
--- 48,53 ----
*************** __gnat_uninstall_int_handler (void)
*** 104,110 ****
#include "mingw32.h"
#include <windows.h>
! void (*sigint_intercepted) () = NULL;
static BOOL WINAPI
__gnat_int_handler (DWORD dwCtrlType)
--- 102,108 ----
#include "mingw32.h"
#include <windows.h>
! void (*sigint_intercepted) (void) = NULL;
static BOOL WINAPI
__gnat_int_handler (DWORD dwCtrlType)
http://personals.yahoo.com.au - Yahoo! Personals
New people, new possibilities. FREE for a limited time.