]>
Commit | Line | Data |
---|---|---|
35914702 | 1 | /* cygwin_crt0.c: crt0 for cygwin |
14a3bc2f | 2 | |
bc837d22 | 3 | Copyright 2000, 2001, 2007, 2008, 2009, 2011 Red Hat, Inc. |
14a3bc2f CF |
4 | |
5 | This file is part of Cygwin. | |
6 | ||
7 | This software is a copyrighted work licensed under the terms of the | |
8 | Cygwin license. Please consult the file "CYGWIN_LICENSE" for | |
9 | details. */ | |
10 | ||
85219b35 | 11 | #undef __INSIDE_CYGWIN__ |
14a3bc2f CF |
12 | #include "crt0.h" |
13 | ||
b58e5f42 | 14 | extern void __stdcall _dll_crt0 () |
ca1953ee | 15 | __declspec (dllimport) __attribute__ ((noreturn)); |
14a3bc2f CF |
16 | |
17 | /* for main module */ | |
18 | void | |
19 | cygwin_crt0 (MainFunc f) | |
20 | { | |
b58e5f42 CF |
21 | _cygwin_crt0_common (f, NULL); |
22 | _dll_crt0 (); /* Jump into the dll, never to return */ | |
14a3bc2f | 23 | } |