diff packages/language/c/libc/string/current/tests/strcat1.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/strcat1.c
+++ b/packages/language/c/libc/string/current/tests/strcat1.c
@@ -50,6 +50,7 @@
 
 // INCLUDES
 
+#include <pkgconf/isoinfra.h>
 #include <string.h>
 #include <cyg/infra/testcase.h>
 
@@ -81,7 +82,11 @@ static char *my_strcpy(char *s1, const c
 } // 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];