program.version_patch = VERSION_PATCH(program_version);
program.error_filename = getErrorFilename(ERROR_BASENAME);
+ program.error_file = stderr;
}
void InitExitFunction(void (*exit_function)(int))
#endif
#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS)
- initErrorFile();
+ openErrorFile();
#endif
#if defined(TARGET_SDL)
void ClosePlatformDependentStuff(void)
{
+#if defined(PLATFORM_WIN32) || defined(PLATFORM_MSDOS)
+ closeErrorFile();
+#endif
+
#if defined(PLATFORM_MSDOS)
dumpErrorFile();
#endif