mirror of
https://github.com/ziglang/zig.git
synced 2026-01-20 22:35:24 +00:00
std: make all dirent structs extern
Using structs with unspecified layout on the ABI boundry can't end well.
This commit is contained in:
parent
254a3ba9d9
commit
687a756bf9
@ -171,7 +171,7 @@ pub const RTLD = struct {
|
||||
pub const LOCAL = 0;
|
||||
};
|
||||
|
||||
pub const dirent = struct {
|
||||
pub const dirent = extern struct {
|
||||
ino: c_uint,
|
||||
off: c_uint,
|
||||
reclen: c_ushort,
|
||||
|
||||
@ -330,14 +330,14 @@ pub const RTLD = struct {
|
||||
pub const LOCAL = 0;
|
||||
};
|
||||
|
||||
pub const dirent = struct {
|
||||
pub const dirent = extern struct {
|
||||
ino: c_uint,
|
||||
off: c_uint,
|
||||
reclen: c_ushort,
|
||||
type: u8,
|
||||
name: [256]u8,
|
||||
};
|
||||
pub const dirent64 = struct {
|
||||
pub const dirent64 = extern struct {
|
||||
ino: c_ulong,
|
||||
off: c_ulong,
|
||||
reclen: c_ushort,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user