Mercurial > ecos-v3_0-branch
diff packages/language/c/libc/string/current/tests/strxfrm2.c @ 2725:fa083e5b947e
Make the string tests work in configurations which do not involve
main().
| author | bartv |
|---|---|
| date | Wed, 28 Jan 2009 15:28:56 +0000 |
| parents | d2c90368aeef |
| children | 74dbf4c3f2e1 |
line wrap: on
line diff
--- a/packages/language/c/libc/string/current/tests/strxfrm2.c +++ b/packages/language/c/libc/string/current/tests/strxfrm2.c @@ -55,6 +55,7 @@ // INCLUDES +#include <pkgconf/isoinfra.h> #include <string.h> #include <cyg/infra/testcase.h> @@ -101,7 +102,11 @@ static char *my_strcpy(char *s1, const c return s1; } // my_strcpy() +#if CYGINT_ISO_MAIN_STARTUP int main( int argc, char *argv[] ) +#else +void cyg_user_start(void) +#endif { char x[300]; char y[300];
