mirror of
https://codeberg.org/ziglang/zig.git
synced 2025-12-06 05:44:20 +00: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
fc62e6d7ef
commit
2abfbd952a
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
Reference in a new issue