mirror of
https://github.com/lvgl/lvgl.git
synced 2025-01-28 07:03:00 +08:00
fix(printf) skip defining attribute if pycparser is used
This commit is contained in:
parent
078eaa009d
commit
ee9bbea29c
@ -80,7 +80,7 @@ typedef uint32_t lv_uintptr_t;
|
|||||||
#define _LV_CONCAT3(x, y, z) x ## y ## z
|
#define _LV_CONCAT3(x, y, z) x ## y ## z
|
||||||
#define LV_CONCAT3(x, y, z) _LV_CONCAT3(x, y, z)
|
#define LV_CONCAT3(x, y, z) _LV_CONCAT3(x, y, z)
|
||||||
|
|
||||||
#if defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)
|
#if (defined(__clang__) || defined(__GNUC__) || defined(__GNUG__)) && !defined(PYCPARSER)
|
||||||
#define LV_FORMAT_ATTRIBUTE(fmtstr, vararg) __attribute__ ((format(printf, fmtstr, vararg)))
|
#define LV_FORMAT_ATTRIBUTE(fmtstr, vararg) __attribute__ ((format(printf, fmtstr, vararg)))
|
||||||
#else
|
#else
|
||||||
#define LV_FORMAT_ATTRIBUTE(fmtstr, vararg)
|
#define LV_FORMAT_ATTRIBUTE(fmtstr, vararg)
|
||||||
|
Loading…
x
Reference in New Issue
Block a user