Skip to content

Commit 4b2b54d

Browse files
louis-peenskeith-packard
authored andcommitted
meson: Add missing long-long option in conf_data.set for tinystdio
Seems like adding the 'long-long' option to the conf_data.set() options for 'tinystdio' was accidentally missed. This leads '_FORMAT_DEFAULT_LONG_LONG' not being set when using the 'format-default=long-long' option, which ultimately leads to the 'vfprintf' etc functions not being registered properly: picolibc/newlib/libc/tinystdio/printf.c:41: \ undefined reference to `vfprintf' Fix this by adding in the missing entry for the 'long-long' variant. Fixes: ca70b2a ("libc/tinystdio: Add 'long-long' printf/scanf variants") Signed-off-by: Louis Peens <[email protected]>
1 parent 4d3e079 commit 4b2b54d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

meson.build

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1415,6 +1415,9 @@ if tinystdio
14151415
conf_data.set('_FORMAT_DEFAULT_FLOAT',
14161416
format_default == 'float',
14171417
description: 'The default printf functions is the float variant')
1418+
conf_data.set('_FORMAT_DEFAULT_LONG_LONG',
1419+
format_default == 'long-long',
1420+
description: 'The default printf functions is the long-long variant')
14181421
conf_data.set('_FORMAT_DEFAULT_INTEGER',
14191422
format_default == 'integer',
14201423
description: 'The default printf functions is the integer variant')

0 commit comments

Comments
 (0)