The init function can be called main.

This commit is contained in:
Francois Gouget 2000-11-27 01:33:55 +00:00 committed by Alexandre Julliard
parent c34fe084d5
commit c87c5e3d22
1 changed files with 0 additions and 2 deletions

View File

@ -559,8 +559,6 @@ SPEC_TYPE ParseTopLevel( FILE *file )
fatal_error( "init cannot be used for Win16 spec files\n" ); fatal_error( "init cannot be used for Win16 spec files\n" );
if (!DLLInitFunc[0]) if (!DLLInitFunc[0])
fatal_error( "Expected function name after init\n" ); fatal_error( "Expected function name after init\n" );
if (!strcmp(DLLInitFunc, "main"))
fatal_error( "The init function cannot be named 'main'\n" );
} }
else if (strcmp(token, "import") == 0) else if (strcmp(token, "import") == 0)
{ {