stage1 fixes to support building with 32-bit mingw-w64

This commit is contained in:
Andrew Kelley 2020-04-06 20:30:34 -04:00
parent 9ed00b3829
commit 41cb49eb58
No known key found for this signature in database
GPG Key ID: 7C5F548F728501A9
2 changed files with 5 additions and 1 deletions

View File

@ -37,7 +37,9 @@
#include <fcntl.h>
#include <ntsecapi.h>
#if defined(_MSC_VER)
typedef SSIZE_T ssize_t;
#endif
#else
#define ZIG_OS_POSIX

View File

@ -50,7 +50,9 @@ enum ZigClangAPValueKind {
struct ZigClangAPValue {
enum ZigClangAPValueKind Kind;
// experimentally-derived size of clang::APValue::DataType
#if defined(_WIN32) && defined(_MSC_VER)
#if defined(_WIN32) && defined(__i386__)
char Data[68];
#elif defined(_WIN32) && defined(_MSC_VER)
char Data[52];
#elif defined(__i386__)
char Data[48];