1
0
mirror of https://github.com/OpenRCT2/OpenRCT2 synced 2026-02-01 11:15:13 +01:00

Fix building for mingw

This commit is contained in:
Ted John
2018-03-13 12:09:25 +00:00
parent 2c627b43ba
commit e3eff999a7
2 changed files with 6 additions and 2 deletions

View File

@@ -25,6 +25,8 @@
#if !defined(__MINGW32__) && ((NTDDI_VERSION >= NTDDI_VISTA) && !defined(_USING_V110_SDK71_) && !defined(_ATL_XP_TARGETING))
#define __USE_SHGETKNOWNFOLDERPATH__
#define __USE_GETDATEFORMATEX__
#else
#define ENABLE_VIRTUAL_TERMINAL_PROCESSING 0x0004
#endif
#include "../core/Path.hpp"

View File

@@ -131,7 +131,7 @@
#ifndef NOMINMAX
#define NOMINMAX
#endif
#include <Windows.h>
#include <windows.h>
#include <io.h>
#ifndef STDIN_FILENO
#define STDIN_FILENO (_fileno(stdin))
@@ -911,7 +911,7 @@ inline BOOL ParseAndPrintANSIString(HANDLE hDev, LPCVOID lpBuffer, DWORD nNumber
InterpretEscSeq();
state = 1;
}
else if (Pt_len < lenof(Pt_arg) - 1)
else if (Pt_len < (int)lenof(Pt_arg) - 1)
Pt_arg[Pt_len++] = *s;
}
else if (state == 6)
@@ -1061,7 +1061,9 @@ inline int win32_write(int fd, const void *buffer, unsigned int count) {
#define LINENOISE_DEFAULT_HISTORY_MAX_LEN 100
#define LINENOISE_MAX_LINE 4096
#ifndef _WIN32
static const char *unsupported_term[] = {"dumb","cons25","emacs",NULL};
#endif
static CompletionCallback completionCallback;
#ifndef _WIN32