diff --git a/src/c_struct.rs b/src/c_struct.rs index e812e75..9fa5e7d 100644 --- a/src/c_struct.rs +++ b/src/c_struct.rs @@ -3,12 +3,14 @@ macro_rules! c_struct { { + $(#[$sattr: meta])* $cname: ident { $($(#[$attr: meta])* $name: ident: $type: ty);*; } } => { + $(#[$sattr])* #[repr(C)] pub struct $cname {