Cygwin: (mostly) drop NT4 and Samba < 3.0 support
[newlib-cygwin.git] / winsup / cygwin / crt0.c
blob1096e58970061454a5ed0254afc90640a6ef9ca4
1 /* crt0.c
3 This software is a copyrighted work licensed under the terms of the
4 Cygwin license. Please consult the file "CYGWIN_LICENSE" for
5 details. */
7 #include "winlean.h"
8 #include <sys/cygwin.h>
10 extern int main (int argc, char **argv);
12 void cygwin_crt0 (int (*main) (int, char **));
14 void
15 mainCRTStartup ()
17 cygwin_crt0 (main);
19 /* These are never actually called. They are just here to force the inclusion
20 of things like -lbinmode. */
22 cygwin_premain0 (0, NULL, NULL);
23 cygwin_premain1 (0, NULL, NULL);
24 cygwin_premain2 (0, NULL, NULL);
25 cygwin_premain3 (0, NULL, NULL);
28 void WinMainCRTStartup(void) __attribute__ ((alias("mainCRTStartup")));