mirror of
https://github.com/apache/nuttx.git
synced 2026-05-21 04:52:02 +08:00
include/nuttx/compiler.h: fix redefine about offsetof
nuttx/compiler.h:176:11: warning: 'offsetof' macro redefined [-Wmacro-redefined]
^
clang/14.0.6/include/stddef.h:104:9: note: previous definition is here
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -85,6 +85,8 @@
|
||||
|
||||
#endif
|
||||
|
||||
#undef offsetof
|
||||
|
||||
/* GCC-specific definitions *************************************************/
|
||||
|
||||
#ifdef __GNUC__
|
||||
|
||||
Reference in New Issue
Block a user