diff options
Diffstat (limited to 'winsup/cygwin/lib/cygwin_crt0.c')
-rw-r--r-- | winsup/cygwin/lib/cygwin_crt0.c | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/winsup/cygwin/lib/cygwin_crt0.c b/winsup/cygwin/lib/cygwin_crt0.c new file mode 100644 index 000000000..deed1a054 --- /dev/null +++ b/winsup/cygwin/lib/cygwin_crt0.c @@ -0,0 +1,24 @@ +/* crt0.cc: crt0 for libc + + Copyright 2000 Cygnus Solutions. + +This file is part of Cygwin. + +This software is a copyrighted work licensed under the terms of the +Cygwin license. Please consult the file "CYGWIN_LICENSE" for +details. */ + +#include <windows.h> +#include "crt0.h" + +extern void __stdcall dll_crt0 (void) __declspec (dllimport); + +/* for main module */ +void +cygwin_crt0 (MainFunc f) +{ + _cygwin_crt0_common (f); + + /* Jump into the dll. */ + dll_crt0 (); +} |