- cleaned up the remaining dependencies on windows.h

This file now only gets included by code that really needs it.
This commit is contained in:
Christoph Oelckers 2020-02-03 21:30:57 +01:00
parent 95c906e21a
commit a90185bea9
17 changed files with 20 additions and 265 deletions

View file

@ -835,9 +835,7 @@ void I_Error(const char* error, ...)
va_start(argptr, error);
vsnprintf(errortext, MAX_ERRORTEXT, error, argptr);
va_end(argptr);
#ifdef _WIN32
OutputDebugStringA(errortext);
#endif
I_DebugPrint(errortext);
throw std::runtime_error(errortext);
}
@ -850,9 +848,7 @@ void I_FatalError(const char* error, ...)
va_start(argptr, error);
vsnprintf(errortext, MAX_ERRORTEXT, error, argptr);
va_end(argptr);
#ifdef _WIN32
OutputDebugStringA(errortext);
#endif
I_DebugPrint(errortext);
throw std::runtime_error(errortext);
}