use USER_CPPFLAGS & USER_INCLUDES
[AROS.git] / compiler / startup / nixmain.c
blobcd31f031d993a2f0302b936afe5990e03bcfcdb1
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: special main function for code which has to use special *nix features
6 Lang: english
7 */
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
16 Is this wanted ?
19 int __nixmain(int argc, char *argv[])
21 return __posixc_nixmain(main, argc, argv);
24 int (*__main_function_ptr)(int argc, char *argv[]) = __nixmain;