Synch'd Scout with source from its CVS repository.
[AROS-Contrib.git] / scout / source / prestartup.c
blobfb8b7899718f6bc13d484fd0bbf37d49957299f1
1 #include <exec/execbase.h>
2 #include <exec/types.h>
3 #include <SDI_compiler.h>
5 #if defined(__AROS__)
6 extern ULONG SAVEDS realstartup(struct ExecBase *sBase);
8 AROS_UFH3(__startup static ULONG, startup,
9 AROS_UFHA(char *, argstr, A0),
10 AROS_UFHA(ULONG, argsize, D0),
11 AROS_UFHA(struct ExecBase *, sBase, A6))
13 AROS_USERFUNC_INIT
15 return realstartup(sBase);
17 AROS_USERFUNC_EXIT
19 #elif defined(__amigaos4__)
20 #error AmigaOS4 uses the _start() entry
21 #else
22 extern ULONG SAVEDS realstartup(void);
24 ULONG startup(void)
26 return realstartup();
28 #endif