Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'winsup/cygwin/crt0.c')
-rw-r--r--winsup/cygwin/crt0.c13
1 files changed, 4 insertions, 9 deletions
diff --git a/winsup/cygwin/crt0.c b/winsup/cygwin/crt0.c
index 48cafd5e1..1421f6566 100644
--- a/winsup/cygwin/crt0.c
+++ b/winsup/cygwin/crt0.c
@@ -1,19 +1,11 @@
/* crt0.c.
- Copyright 2001 Red Hat, Inc.
+ Copyright 2001, 2005 Red Hat, Inc.
This software is a copyrighted work licensed under the terms of the
Cygwin license. Please consult the file "CYGWIN_LICENSE" for
details. */
-#ifdef __PPC__
-/* For the PowerPC, we want to make this function have its structured
- exception table exception function point to something we control. */
-
-extern void __cygwin_exception_handler();
-extern void mainCRTStartup(void) __attribute__((__exception__(__cygwin_exception_handler)));
-#endif
-
/* In the following ifdef'd i386 code, the FPU precision is set to 80 bits
and all FPU exceptions are masked. The former is needed to make long
doubles work correctly. The latter causes the FPU to generate NaNs and
@@ -58,3 +50,6 @@ mainCRTStartup ()
cygwin_crt0 (main);
}
+
+void WinMainCRTStartup(void) __attribute__ ((alias("mainCRTStartup")));
+