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) {...@@ -1912,9 +1912,10 @@ pub const LC = enum(c_int) {
1912 TELEPHONE = 10,1912 TELEPHONE = 10,
1913 MEASUREMENT = 11,1913 MEASUREMENT = 11,
1914 IDENTIFICATION = 12,1914 IDENTIFICATION = 12,
1915 _,
1915};1916};
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
1919pub const getcontext = if (builtin.target.isAndroid())1920pub const getcontext = if (builtin.target.isAndroid())
1920 @compileError("android bionic libc does not implement getcontext")1921 @compileError("android bionic libc does not implement getcontext")