mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.c: remove comptime asserts of siginfo_t size
These serve no purpose other than to verify that the compiler is doing layout correctly, and this is clearly not the place for that.
This commit is contained in:
parent
672ce9e919
commit
56add8374c
1 changed files with 0 additions and 8 deletions
|
|
@ -4682,14 +4682,6 @@ pub const siginfo_t = switch (native_os) {
|
|||
},
|
||||
__pad: [128 - 3 * @sizeOf(c_int)]u8,
|
||||
},
|
||||
|
||||
comptime {
|
||||
if (@sizeOf(usize) == 4)
|
||||
assert(@sizeOf(@This()) == 128)
|
||||
else
|
||||
// Take into account the padding between errno and data fields.
|
||||
assert(@sizeOf(@This()) == 136);
|
||||
}
|
||||
},
|
||||
// https://github.com/SerenityOS/serenity/blob/ec492a1a0819e6239ea44156825c4ee7234ca3db/Kernel/API/POSIX/signal.h#L27-L37
|
||||
.serenity => extern struct {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue