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:
@@ -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"
|
||||
|
||||
6
src/openrct2/thirdparty/linenoise.hpp
vendored
6
src/openrct2/thirdparty/linenoise.hpp
vendored
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user