motiejus/zig

fork of https://codeberg.org/ziglang/zig
git clone https://git.jakstys.lt/motiejus/zig.git
Log | Tree | Refs | README | LICENSE

commit 4e6518badbe71d0c908457966e31dc52cb0529f8 (tree)
parent 888708ec8af9b60681ef14fb0a5c265f2a30b41f
Author: Andrew Kelley <andrew@ziglang.org>
Date:   Tue, 16 Jul 2024 00:39:31 -0700

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

std.c: setlocale fixes
Diffstat:
Mlib/std/c.zig | 3++-
1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/lib/std/c.zig b/lib/std/c.zig @@ -1912,9 +1912,10 @@ pub const LC = enum(c_int) { TELEPHONE = 10, MEASUREMENT = 11, IDENTIFICATION = 12, + _, }; -pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) [*:0]const u8; +pub extern "c" fn setlocale(category: LC, locale: ?[*:0]const u8) ?[*:0]const u8; pub const getcontext = if (builtin.target.isAndroid()) @compileError("android bionic libc does not implement getcontext")