Avoid static forward declaration that doesn't work on MSVC.

This commit is contained in:
Alexandre Julliard 2005-06-15 10:22:59 +00:00
parent c62940a1ac
commit ac75dcc240
2 changed files with 4 additions and 3 deletions

View File

@ -22,6 +22,7 @@
#define __WINE_TEST_H
#include <stdarg.h>
#include <stdlib.h>
#include <windef.h>
#include <winbase.h>
@ -43,7 +44,7 @@ extern int winetest_get_mainargs( char*** pargv );
#ifdef STANDALONE
#define START_TEST(name) \
static void func_##name(void); \
static const struct test winetest_testlist[] = { { #name, func_##name }, { 0, 0 } }; \
const struct test winetest_testlist[] = { { #name, func_##name }, { 0, 0 } }; \
static void func_##name(void)
#else
#define START_TEST(name) void func_##name(void)
@ -129,7 +130,7 @@ struct test
void (*func)(void);
};
static const struct test winetest_testlist[];
extern const struct test winetest_testlist[];
/* debug level */
int winetest_debug = 1;

View File

@ -130,7 +130,7 @@ int main( int argc, const char** argv )
fprintf( out,
"\n"
"static const struct test winetest_testlist[] =\n"
"const struct test winetest_testlist[] =\n"
"{\n" );
for (i = 0; i < count; i++) fprintf( out, " { \"%s\", func_%s },\n", tests[i], tests[i] );