authorgravatar for andrew@ziglang.orgAndrew Kelley <andrew@ziglang.org> 2024-07-16 00:39:31-07:00
committergravatar for noreply@github.comGitHub <noreply@github.com> 2024-07-16 00:39:31-07:00
log4e6518badbe71d0c908457966e31dc52cb0529f8
tree16357cd5e7912f05f1f8fd11c2b5354dffb38f70
parent888708ec8af9b60681ef14fb0a5c265f2a30b41f
parent5af68a651c1f923286ffcd014ef540ab13d26c45
signaturebadge-check Signed by PGP key B5690EEEBB952194

Merge pull request #20640 from BratishkaErik/std.c/setlocale-fix

std.c: setlocale fixes

1 files changed, 2 insertions(+), 1 deletions(-)

lib/std/c.zig+2-1
......@@ -1912,9 +1912,10 @@ pub const LC = enum(c_int) {
19121912 TELEPHONE = 10,
19131913 MEASUREMENT = 11,
19141914 IDENTIFICATION = 12,
1915 _,
19151916};
19161917
1917pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) [*:0]const u8;
1918pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) ?[*:0]const u8;
19181919
19191920pub const getcontext = if (builtin.target.isAndroid())
19201921 @compileError("android bionic libc does not implement getcontext")