You've already forked Core2forAWS-MicroPython
mirror of
https://github.com/m5stack/Core2forAWS-MicroPython.git
synced 2026-05-20 10:30:31 -07:00
lib/utils/printf: Add vsnprintf alias for Clang.
Was reported to break MacOSX build.
This commit is contained in:
+1
-1
@@ -102,7 +102,7 @@ STATIC void strn_print_strn(void *data, const char *str, size_t len) {
|
||||
strn_print_env->remain -= len;
|
||||
}
|
||||
|
||||
#ifdef __GNUC__
|
||||
#if defined(__GNUC__) && !defined(__clang__)
|
||||
// uClibc requires this alias to be defined, or there may be link errors
|
||||
// when linkings against it statically.
|
||||
int __GI_vsnprintf(char *str, size_t size, const char *fmt, va_list ap) __attribute__((weak, alias ("vsnprintf")));
|
||||
|
||||
Reference in New Issue
Block a user