#ifndef _COMPILER_H #include #endif #ifndef _OSBIND_H #include #endif #ifdef __cplusplus extern "C" { #endif int errno; #ifndef __MINT__ int _console_dev = 2; #endif #ifndef __MINT__ __EXTERN __EXITING __exit __PROTO((long)); /* def in crt0.c */ int raise __PROTO((int sig)); void _exit __PROTO((int status)); void _exit(status) int status; { __exit((long)status); } int raise(sig) int sig; { return 0; } #else #if 0 __EXTERN __EXITING _exit __PROTO((int)); #define __exit _exit #else /* compiling MiNT with GCC lib */ __EXTERN __EXITING __exit __PROTO((long)); /* def in crt0.c */ #endif #endif /* __MINT__ */ void _init_signal __PROTO((void)); void exit __PROTO((int status)); void _main __PROTO((long argc, char **argv, char **environ)); void _init_signal() { } __EXITING exit(status) int status; { __exit(status); } void _main(argc, argv, environ) long argc; char **argv; char **environ; { __EXTERN int main __PROTO((int, char **, char **)); exit(main((int)argc, argv, environ)); } #ifdef __cplusplus } #endif