diff options
Diffstat (limited to 'libc/stdio-common/printf.h')
-rw-r--r-- | libc/stdio-common/printf.h | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/libc/stdio-common/printf.h b/libc/stdio-common/printf.h index 360cdcce1..3d841e2fe 100644 --- a/libc/stdio-common/printf.h +++ b/libc/stdio-common/printf.h @@ -48,6 +48,9 @@ struct printf_info unsigned int is_char:1; /* hh flag. */ unsigned int wide:1; /* Nonzero for wide character streams. */ unsigned int i18n:1; /* I flag. */ +#ifdef __STDC_DEC_FP__ + unsigned int is_decimal:1; /* H/D/DD flags. */ +#endif wchar_t pad; /* Padding character. */ }; @@ -112,6 +115,9 @@ enum PA_POINTER, /* void * */ PA_FLOAT, /* float */ PA_DOUBLE, /* double */ +#ifdef __STDC_DEC_FP__ + PA_DECIMAL, /* _Decimal* types */ +#endif PA_LAST }; |