(svn r26517) -Fix: Windows 9x (or rather non-unicode) compile failures

This commit is contained in:
rubidium
2014-04-26 07:30:15 +00:00
parent 9edf5eba4e
commit b3ea3c45f9
3 changed files with 9 additions and 0 deletions

View File

@@ -613,6 +613,10 @@ static void SetWndSize(HWND wnd, int mode)
}
}
/* When TCHAR is char, then _sntprintf becomes snprintf. When TCHAR is wchar it doesn't. Likewise for strcat. */
#undef snprintf
#undef strcat
static INT_PTR CALLBACK CrashDialogFunc(HWND wnd, UINT msg, WPARAM wParam, LPARAM lParam)
{
switch (msg) {

View File

@@ -29,7 +29,10 @@
#include <errno.h>
#include <sys/stat.h>
/* Due to TCHAR, strncat and strncpy have to remain (for a while). */
#include "../../safeguards.h"
#undef strncat
#undef strncpy
static bool _has_console;
static bool _cursor_disable = true;