glide2x, cvg, oeminit.c: ifdef magic

This commit is contained in:
sezero
2018-08-20 20:24:05 +03:00
parent ee6f124929
commit 19c5f4e705

View File

@@ -22,7 +22,7 @@
#include <stdio.h>
#include <stdlib.h>
#ifndef __linux__
#ifdef _WIN32
#include <windows.h>
#endif
@@ -106,13 +106,16 @@ MyDebugPrintf(FILE* outputFile, const char* fmtString, ...)
#endif /* !DIRECTX */
va_start(args, fmtString);
#if __WIN32__
{
//char msgBuf[256];
char msgBuf[256];
vfprintf(stderr, fmtString, args);
//vsprintf(msgBuf, fmtString, args);
//OutputDebugString(msgBuf);
vsprintf(msgBuf, fmtString, args);
OutputDebugString(msgBuf);
}
#else
vfprintf(stderr, fmtString, args);
#endif
va_end(args);
}
}
@@ -368,5 +371,3 @@ FX_EXPORT FxU32 FX_CSTYLE fxoemControl(FxU32 mode)
return 1;
#undef FN_NAME
} /* fxoemRestoreVideo */