fixed size of ZigClangAPValue on mingw-w64

This commit is contained in:
emekoi 2019-07-16 01:53:10 -05:00 committed by Andrew Kelley
parent 68149f2039
commit 0435026474
2 changed files with 2 additions and 2 deletions

View File

@ -940,7 +940,7 @@ pub const struct_ZigClangExprEvalResult = extern struct {
pub const struct_ZigClangAPValue = extern struct {
Kind: ZigClangAPValue_ValueKind,
Data: if (builtin.os == .windows) [52]u8 else [68]u8,
Data: if (builtin.os == .windows and builtin.abi == .msvc) [52]u8 else [68]u8,
};
pub const ZigClangAPValue_ValueKind = extern enum {

View File

@ -48,7 +48,7 @@ enum ZigClangAPValue_ValueKind {
struct ZigClangAPValue {
enum ZigClangAPValue_ValueKind Kind;
// experimentally-derived size of clang::APValue::DataType
#ifdef _WIN32
#if defined(WIN32) && defined(_MSC_VER)
char Data[52];
#else
char Data[68];