std: mark std.atomic.Int as extern so it can be used in public ABIs

This commit is contained in:
daurnimator 2020-11-19 00:41:43 +11:00
parent c492ef97fd
commit 513e8161dd
No known key found for this signature in database
GPG Key ID: 45B429A8F9D9D22A

View File

@ -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();