Add NetBSD support
This commit is contained in:
@@ -88,9 +88,9 @@ static long __pflink(long x) {
|
||||
x |= kCp437[0];
|
||||
x |= ntoa(0, 0, 0, 0, 0, 0, 0, 0, 0);
|
||||
x |= ftoa(0, 0, 0, 0, 0, 0);
|
||||
x |= strnwidth(0, 0);
|
||||
x |= strnwidth16(0, 0);
|
||||
x |= wcsnwidth(0, 0);
|
||||
x |= strnwidth(0, 0, 0);
|
||||
x |= strnwidth16(0, 0, 0);
|
||||
x |= wcsnwidth(0, 0, 0);
|
||||
x |= malloc(0);
|
||||
x |= __grow(0, 0, 0, 0);
|
||||
x |= (intptr_t)strerror(0);
|
||||
|
||||
@@ -144,14 +144,14 @@ int stoa(int out(long, void *), void *arg, void *data, unsigned long flags,
|
||||
w = precision;
|
||||
if (signbit == 63) {
|
||||
if (weaken(wcsnwidth)) {
|
||||
w = weaken(wcsnwidth)((const wchar_t *)p, precision);
|
||||
w = weaken(wcsnwidth)((const wchar_t *)p, precision, 0);
|
||||
}
|
||||
} else if (signbit == 15) {
|
||||
if (weaken(strnwidth16)) {
|
||||
w = weaken(strnwidth16)((const char16_t *)p, precision);
|
||||
w = weaken(strnwidth16)((const char16_t *)p, precision, 0);
|
||||
}
|
||||
} else if (weaken(strnwidth)) {
|
||||
w = weaken(strnwidth)(p, precision);
|
||||
w = weaken(strnwidth)(p, precision, 0);
|
||||
}
|
||||
if (w < width) {
|
||||
pad = width - w;
|
||||
|
||||
Reference in New Issue
Block a user