Skip to content

Commit

Permalink
Merge pull request #2694 from particle-iot/feature/printf-i-long-long
Browse files Browse the repository at this point in the history
[services] add long long support to printf/scanf
  • Loading branch information
avtolstoy committed Sep 19, 2023
2 parents 5a83bd0 + a5ea7a3 commit 4169b07
Show file tree
Hide file tree
Showing 8 changed files with 1,303 additions and 1 deletion.
4 changes: 3 additions & 1 deletion build/arm-tools.mk
Expand Up @@ -10,8 +10,10 @@ include $(COMMON_BUILD)/common-tools.mk
AR = $(GCC_ARM_PATH)$(GCC_PREFIX)gcc-ar

# Newlib has a bug in fake stdin/stdout/stderr implementation and leaks memory
# Stub printf/fprintf out
# Stub printf/fprintf out, override printf/scanf for 64-bit int/unsigned support
CFLAGS += -fno-builtin-puts -fno-builtin-printf -Wl,--wrap=puts -Wl,--wrap=printf
CFLAGS += -Wl,--wrap=_printf_i -Wl,--wrap=_svfprintf_r
CFLAGS += -Wl,--wrap=_scanf_i -Wl,--wrap=__ssvfscanf_r

#
# default flags for targeting ARM Cortex-M3
Expand Down

0 comments on commit 4169b07

Please sign in to comment.