Mercurial > ecos
diff packages/language/c/libc/stdlib/current/tests/rand2.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/rand2.c +++ b/packages/language/c/libc/stdlib/current/tests/rand2.c @@ -50,6 +50,7 @@ // INCLUDES +#include <pkgconf/system.h> #include <pkgconf/libc_stdlib.h> // CYGNUM_LIBC_RAND_SEED #include <stdlib.h> #include <cyg/infra/testcase.h> @@ -90,8 +91,12 @@ test( CYG_ADDRWORD data ) "library rand() function"); } // 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();
