2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
5 Desc: special main function for code which has to use special *nix features
9 #include <proto/posixc.h>
11 extern int main(int argc
, char *argv
[]);
13 /* FIXME: This solution for -nix flag is now specific for posixc.library
14 Could a more general approach be provided so other libs can add their own
15 flags without needing to do something in compiler/startup
19 int __nixmain(int argc
, char *argv
[])
21 return __posixc_nixmain(main
, argc
, argv
);
24 int (*__main_function_ptr
)(int argc
, char *argv
[]) = __nixmain
;