mirror of
https://github.com/bytecodealliance/wasm-micro-runtime.git
synced 2025-06-18 02:59:21 +00:00
aot_reloc_xtensa.c: define __packed if not available (#1179)
This commit is contained in:
parent
c47b318aef
commit
69c23aa2d4
|
@ -130,6 +130,16 @@ static union {
|
||||||
|
|
||||||
#define is_little_endian() (__ue.b == 1)
|
#define is_little_endian() (__ue.b == 1)
|
||||||
|
|
||||||
|
#if !defined(__packed)
|
||||||
|
/*
|
||||||
|
* Note: This version check is a bit relaxed.
|
||||||
|
* The __packed__ attribute has been there since gcc 2 era.
|
||||||
|
*/
|
||||||
|
#if __GNUC__ >= 3
|
||||||
|
#define __packed __attribute__((__packed__))
|
||||||
|
#endif
|
||||||
|
#endif
|
||||||
|
|
||||||
typedef union {
|
typedef union {
|
||||||
struct l32r_le {
|
struct l32r_le {
|
||||||
int8 other;
|
int8 other;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user