1
0
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:
Themba Dube 2021-07-11 15:27:30 -04:00
parent 078eaa009d
commit ee9bbea29c

View File

@ -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)