diff packages/language/c/libc/stdlib/current/tests/atoi.c @ 2723:ceb6ac6f0ec1

Update tests to work in configurations without main()
author bartv
date Wed, 28 Jan 2009 14:46:57 +0000
parents d2c90368aeef
children 74dbf4c3f2e1
line wrap: on
line diff
--- a/packages/language/c/libc/stdlib/current/tests/atoi.c
+++ b/packages/language/c/libc/stdlib/current/tests/atoi.c
@@ -50,6 +50,7 @@
 
 // INCLUDES
 
+#include <pkgconf/system.h>
 #include <stdlib.h>
 #include <cyg/infra/testcase.h>
 
@@ -94,8 +95,12 @@ test( CYG_ADDRWORD data )
 } // test()
 
 
+#ifndef CYGPKG_LIBC_STARTUP
+void cyg_user_start(void)
+#else
 int
-main(int argc, char *argv[])
+main( int argc, char *argv[] )
+#endif
 {
     CYG_TEST_INIT();