commit 0435026474cc3489337f3d6a7ac9d2e5cb1b7044 (tree)
parent 68149f2039bd203514571f0304e72897b4583ff2
Author: emekoi <emekankurumeh@outlook.com>
Date: Tue, 16 Jul 2019 01:53:10 -0500
fixed size of ZigClangAPValue on mingw-w64
Diffstat:
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src-self-hosted/clang.zig b/src-self-hosted/clang.zig
@@ -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 {
diff --git a/src/zig_clang.h b/src/zig_clang.h
@@ -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];