aboutsummaryrefslogtreecommitdiff
path: root/gcc/ada/ctrl_c.c
diff options
context:
space:
mode:
authorDanny Smith <dannysmith@users.sourceforge.net>2003-10-22 21:34:51 +0000
committerDanny Smith <dannysmith@gcc.gnu.org>2003-10-22 21:34:51 +0000
commit25412599b4618a042ef23c2de92d423391679ad8 (patch)
tree1780c9b5b3a2f29ec96b896c364f0c77eb0c06ca /gcc/ada/ctrl_c.c
parent218d5a871cff811b258266b2ff91addbb6f49a47 (diff)
downloadgcc-25412599b4618a042ef23c2de92d423391679ad8.zip
gcc-25412599b4618a042ef23c2de92d423391679ad8.tar.gz
gcc-25412599b4618a042ef23c2de92d423391679ad8.tar.bz2
sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW.
* sysdep.c: Include conio.h if __MINGW32__ and !OLD_MINGW. * ctrl_c.c (__gnat_int_handler): Remove declaration. * decl.c (creat_concat_name): Const-ify prefix. * adaint.c: Include ctype.h if __MINGW32__. (__gnat_readlink): Mark arguments as possibly unused. (__gnat_symlink): Likewise. (__gnat_is_symbolic_link): Likewise. (__gnat_portable_spawn): Likewise. Cast last arg of spawnvp to match declaration (__gnat_file_time_name): Don't declare struct stat statbuf when not needed. (__gnat_is_absolute_path): Add parenthesis around condition of 'if' statement to avoid warning. (__gnat_plist_init): Specify void as parameter. (plist_enter): Likewise. (plist_leave): Likewise. (remove_handle): Make static. Initialize prev. From-SVN: r72824
Diffstat (limited to 'gcc/ada/ctrl_c.c')
-rw-r--r--gcc/ada/ctrl_c.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/gcc/ada/ctrl_c.c b/gcc/ada/ctrl_c.c
index 7d7eef0..22d0066 100644
--- a/gcc/ada/ctrl_c.c
+++ b/gcc/ada/ctrl_c.c
@@ -48,8 +48,6 @@ void __gnat_install_int_handler (void (*) (void));
/* __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)
@@ -104,7 +102,7 @@ __gnat_uninstall_int_handler (void)
#include "mingw32.h"
#include <windows.h>
-void (*sigint_intercepted) () = NULL;
+void (*sigint_intercepted) (void) = NULL;
static BOOL WINAPI
__gnat_int_handler (DWORD dwCtrlType)