*/
#include "error.h"
+#include "globaldefs.h"
#include "debugging/debugging.h"
#include "igl.h"
#include "preferences.h"
-#ifdef WIN32
+#if GDEF_OS_WINDOWS
#define UNICODE
#include <windows.h>
#else
strcat( text, "\n" );
-#ifdef WIN32
+#if GDEF_OS_WINDOWS
if ( GetLastError() != 0 ) {
LPVOID lpMsgBuf;
FormatMessage(
ERROR_MESSAGE( text );
// force close logging if necessary
- Sys_LogFile( false );
+ Sys_EnableLogFile( false );
_exit( 1 );
}