The init function can be called main.
This commit is contained in:
parent
c34fe084d5
commit
c87c5e3d22
|
@ -559,8 +559,6 @@ SPEC_TYPE ParseTopLevel( FILE *file )
|
|||
fatal_error( "init cannot be used for Win16 spec files\n" );
|
||||
if (!DLLInitFunc[0])
|
||||
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)
|
||||
{
|
||||
|
|
Loading…
Reference in New Issue