Remove: WinCE support

This commit is contained in:
Patric Stout
2018-04-29 14:21:31 +02:00
parent 85adde7485
commit aef69443e7
16 changed files with 49 additions and 209 deletions

View File

@@ -189,9 +189,7 @@
#define NTDDI_VERSION NTDDI_WIN2K // Windows 2000
#define _WIN32_WINNT 0x0500 // Windows 2000
#define _WIN32_WINDOWS 0x400 // Windows 95
#if !defined(WINCE)
#define WINVER 0x0400 // Windows NT 4.0 / Windows 95
#endif
#define WINVER 0x0400 // Windows NT 4.0 / Windows 95
#define _WIN32_IE_ 0x0401 // 4.01 (win98 and NT4SP5+)
#endif
#define NOMINMAX // Disable min/max macros in windows.h.
@@ -225,10 +223,7 @@
#define inline __forceinline
#endif
#if !defined(WINCE)
#define CDECL _cdecl
#endif
#define CDECL _cdecl
#define GCC_PACK
#define WARN_FORMAT(string, args)
#define FINAL sealed
@@ -240,10 +235,6 @@
#define FALLTHROUGH
#endif
#if defined(WINCE)
int CDECL vsnprintf(char *str, size_t size, const char *format, va_list ap);
#endif
#if defined(WIN32) && !defined(_WIN64) && !defined(WIN64)
#if !defined(_W64)
#define _W64
@@ -264,15 +255,8 @@
#endif
#endif
#if defined(WINCE)
#define strcasecmp _stricmp
#define strncasecmp _strnicmp
#undef DEBUG
#else
#define strcasecmp stricmp
#define strncasecmp strnicmp
#endif
#define strcasecmp stricmp
#define strncasecmp strnicmp
#define strtoull _strtoui64
/* MSVC doesn't have these :( */
@@ -290,10 +274,6 @@
#define SIGBUS SIGNOFP
#endif
#if defined(WINCE)
#define stredup _stredup
#endif /* WINCE */
/* NOTE: the string returned by these functions is only valid until the next
* call to the same function and is not thread- or reentrancy-safe */
#if !defined(STRGEN) && !defined(SETTINGSGEN)
@@ -302,12 +282,9 @@
#include <tchar.h>
#include <io.h>
/* XXX - WinCE without MSVCRT doesn't support wfopen, so it seems */
#if !defined(WINCE)
namespace std { using ::_tfopen; }
#define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode))
#define unlink(file) _tunlink(OTTD2FS(file))
#endif /* WINCE */
namespace std { using ::_tfopen; }
#define fopen(file, mode) _tfopen(OTTD2FS(file), _T(mode))
#define unlink(file) _tunlink(OTTD2FS(file))
const char *FS2OTTD(const TCHAR *name);
const TCHAR *OTTD2FS(const char *name, bool console_cp = false);