From 64bd9053a25297f7a442ca831c7da5b44bd33f84 Mon Sep 17 00:00:00 2001 From: jacqueline Date: Wed, 12 Jun 2024 17:54:40 +1000 Subject: Update LVGL to v9.1.0 --- lib/lvgl/src/stdlib/lv_sprintf.h | 47 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 47 insertions(+) create mode 100644 lib/lvgl/src/stdlib/lv_sprintf.h (limited to 'lib/lvgl/src/stdlib/lv_sprintf.h') diff --git a/lib/lvgl/src/stdlib/lv_sprintf.h b/lib/lvgl/src/stdlib/lv_sprintf.h new file mode 100644 index 00000000..cd5a8034 --- /dev/null +++ b/lib/lvgl/src/stdlib/lv_sprintf.h @@ -0,0 +1,47 @@ +/** + * lv_snprintf.h + * + */ + +#ifndef _LV_SPRINTF_H_ +#define _LV_SPRINTF_H_ + +#if defined(__has_include) + #if __has_include() + #include + /* platform-specific printf format for int32_t, usually "d" or "ld" */ + #define LV_PRId32 PRId32 + #define LV_PRIu32 PRIu32 + #define LV_PRIx32 PRIx32 + #define LV_PRIX32 PRIX32 + #else + #define LV_PRId32 "d" + #define LV_PRIu32 "u" + #define LV_PRIx32 "x" + #define LV_PRIX32 "X" + #endif +#else + /* hope this is correct for ports without __has_include or without inttypes.h */ + #define LV_PRId32 "d" + #define LV_PRIu32 "u" + #define LV_PRIx32 "x" + #define LV_PRIX32 "X" +#endif + +#include +#include +#include + +#ifdef __cplusplus +extern "C" { +#endif + +int lv_snprintf(char * buffer, size_t count, const char * format, ...); + +int lv_vsnprintf(char * buffer, size_t count, const char * format, va_list va); + +#ifdef __cplusplus +} /*extern "C"*/ +#endif + +#endif /* _LV_SPRINTF_H_*/ -- cgit v1.2.3