File tree 2 files changed +9
-2
lines changed 2 files changed +9
-2
lines changed Original file line number Diff line number Diff line change
1
+ const builtin = @import ("builtin" );
2
+
1
3
pub const struct_ZigClangAPSInt = @OpaqueType ();
2
4
pub const struct_ZigClangAPFloat = @OpaqueType ();
3
5
pub const struct_ZigClangASTContext = @OpaqueType ();
@@ -938,7 +940,7 @@ pub const struct_ZigClangExprEvalResult = extern struct {
938
940
939
941
pub const struct_ZigClangAPValue = extern struct {
940
942
Kind : ZigClangAPValue_ValueKind ,
941
- Data : [ 68 ] u8 , // TODO: is there a way to statically assert that this matches the .h?
943
+ Data : if ( builtin.os == .windows ) [ 52 ] u8 else [ 68 ] u8 ,
942
944
};
943
945
944
946
pub const ZigClangAPValue_ValueKind = extern enum {
Original file line number Diff line number Diff line change @@ -47,7 +47,12 @@ enum ZigClangAPValue_ValueKind {
47
47
48
48
struct ZigClangAPValue {
49
49
enum ZigClangAPValue_ValueKind Kind ;
50
- char Data [68 ]; // experimentally-derived size of clang::APValue::DataType
50
+ // experimentally-derived size of clang::APValue::DataType
51
+ #ifdef _WIN32
52
+ char Data [52 ];
53
+ #else
54
+ char Data [68 ];
55
+ #endif
51
56
};
52
57
53
58
struct ZigClangExprEvalResult {
You can’t perform that action at this time.
0 commit comments