Commit 513e8161dd

daurnimator <quae@daurnimator.com>
2020-11-18 14:41:43
std: mark std.atomic.Int as extern so it can be used in public ABIs
1 parent c492ef9
Changed files (1)
lib
std
atomic
lib/std/atomic/int.zig
@@ -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();