mirror of https://github.com/thesofproject/sof.git
Added #ifndef guards in compiler_attributes
Building with GCC on Windows using MSYS caused errors related to macros redefinition in compile_attributes.h due to GCC using its standard headers. Added #ifndef guards. Signed-off-by: Andrey Borisovich <andrey.borisovich@intel.com>
This commit is contained in:
parent
2c1f089d39
commit
eb4a9381d3
|
@ -7,15 +7,23 @@
|
||||||
|
|
||||||
#ifndef __ZEPHYR__
|
#ifndef __ZEPHYR__
|
||||||
|
|
||||||
|
#ifndef __packed
|
||||||
#define __packed __attribute__((packed))
|
#define __packed __attribute__((packed))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __unused
|
||||||
#define __unused __attribute__((unused))
|
#define __unused __attribute__((unused))
|
||||||
|
#endif
|
||||||
|
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
|
#ifndef __aligned
|
||||||
#define __aligned(x) __attribute__((__aligned__(x)))
|
#define __aligned(x) __attribute__((__aligned__(x)))
|
||||||
|
#endif
|
||||||
|
|
||||||
|
#ifndef __section
|
||||||
#define __section(x) __attribute__((section(x)))
|
#define __section(x) __attribute__((section(x)))
|
||||||
|
#endif
|
||||||
|
|
||||||
#if defined(__clang__) || !defined(__XCC__)
|
#if defined(__clang__) || !defined(__XCC__)
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue