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

std.c: setlocale fixes
This commit is contained in:
Andrew Kelley 2024-07-16 00:39:31 -07:00 committed by GitHub
commit 4e6518badb
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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")