diff --git a/macro/src/expand.rs b/macro/src/expand.rs index 7e93368b6..06995361a 100644 --- a/macro/src/expand.rs +++ b/macro/src/expand.rs @@ -172,8 +172,8 @@ fn expand_struct(strct: &Struct) -> TokenStream { quote! { #doc - #attrs #derives + #attrs #[repr(C)] #struct_def @@ -342,8 +342,8 @@ fn expand_enum(enm: &Enum) -> TokenStream { quote! { #doc - #attrs #derives + #attrs #[repr(transparent)] #enum_def