mirror of
https://github.com/ziglang/zig.git
synced 2025-12-24 15:13:08 +00:00
std: mark std.atomic.Int as extern so it can be used in public ABIs
This commit is contained in:
parent
c492ef97fd
commit
513e8161dd
@ -8,7 +8,7 @@ const builtin = @import("std").builtin;
|
||||
|
||||
/// Thread-safe, lock-free integer
|
||||
pub fn Int(comptime T: type) type {
|
||||
return struct {
|
||||
return extern struct {
|
||||
unprotected_value: T,
|
||||
|
||||
pub const Self = @This();
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user