Add back main entry point for mingw

This commit is contained in:
Ted John 2017-01-09 22:28:39 +00:00
parent d535e290d3
commit 21bb7b9da6
1 changed files with 12 additions and 1 deletions

View File

@ -72,7 +72,18 @@ int RunOpenRCT2(int argc, char * * argv)
return gExitCode;
}
#ifndef NO_RCT2
#ifdef NO_RCT2
#ifdef __MINGW32__
int main(int argc, const char **argv)
{
return RunOpenRCT2(argc, argv);
}
#endif
#else
/* DllMain is already defined in one of static libraries we implicitly depend
* on (libcrypto), which is their bug really, but since we don't do anything in