Mercurial > ecos
diff packages/language/c/libc/stdlib/current/tests/bsearch.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/bsearch.c +++ b/packages/language/c/libc/stdlib/current/tests/bsearch.c @@ -50,6 +50,7 @@ // INCLUDES +#include <pkgconf/system.h> #include <stdlib.h> #include <cyg/infra/testcase.h> @@ -67,8 +68,12 @@ Compar( const void *int1, const void *in return 1; } // Compar() +#ifndef CYGPKG_LIBC_STARTUP +void cyg_user_start(void) +#else int main( int argc, char *argv[] ) +#endif { int key; int *result;
