mirror of
https://git.proxmox.com/git/wasi-libc
synced 2025-08-04 11:03:48 +00:00
Add vfwprintf.c to the printscan list.
This causes the build to produce no-long-double and no-floating-point versions of this file, following what is done for vfprintf.c.
This commit is contained in:
parent
1cbedc6d7e
commit
2201343c17
1
Makefile
1
Makefile
@ -143,6 +143,7 @@ LIBC_TOP_HALF_MUSL_SOURCES = \
|
||||
MUSL_PRINTSCAN_SOURCES = \
|
||||
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/internal/floatscan.c \
|
||||
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdio/vfprintf.c \
|
||||
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdio/vfwprintf.c \
|
||||
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdio/vfscanf.c \
|
||||
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdlib/strtod.c \
|
||||
$(LIBC_TOP_HALF_MUSL_SRC_DIR)/stdlib/wcstod.c
|
||||
|
@ -355,9 +355,11 @@ static int wprintf_core(FILE *f, const wchar_t *fmt, va_list *ap, union arg *nl_
|
||||
sizeprefix[(t|32)-'a'], t);
|
||||
|
||||
switch (t|32) {
|
||||
#if !defined(__wasilibc_printscan_no_floating_point)
|
||||
case 'a': case 'e': case 'f': case 'g':
|
||||
l = fprintf(f, charfmt, w, p, arg.f);
|
||||
break;
|
||||
#endif
|
||||
case 'd': case 'i': case 'o': case 'u': case 'x': case 'p':
|
||||
l = fprintf(f, charfmt, w, p, arg.i);
|
||||
break;
|
||||
|
Loading…
Reference in New Issue
Block a user