mirror of
https://github.com/lwip-tcpip/lwip.git
synced 2025-03-15 13:20:57 +00:00
arch.h: Add hint for struct packing #defines on GCC/clang
This commit is contained in:
parent
89cb7b7aa1
commit
a420d2530f
@ -166,18 +166,22 @@ typedef uintptr_t mem_ptr_t;
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* GCC/clang: Nothing to do */
|
||||
#ifndef PACK_STRUCT_BEGIN
|
||||
#define PACK_STRUCT_BEGIN
|
||||
#endif /* PACK_STRUCT_BEGIN */
|
||||
|
||||
/* GCC/clang: Nothing to do */
|
||||
#ifndef PACK_STRUCT_END
|
||||
#define PACK_STRUCT_END
|
||||
#endif /* PACK_STRUCT_END */
|
||||
|
||||
/* GCC/clang: #define PACK_STRUCT_STRUCT __attribute__((packed)) */
|
||||
#ifndef PACK_STRUCT_STRUCT
|
||||
#define PACK_STRUCT_STRUCT
|
||||
#endif /* PACK_STRUCT_STRUCT */
|
||||
|
||||
/* GCC/clang: Nothing to do */
|
||||
#ifndef PACK_STRUCT_FIELD
|
||||
#define PACK_STRUCT_FIELD(x) x
|
||||
#endif /* PACK_STRUCT_FIELD */
|
||||
@ -199,7 +203,6 @@ extern "C" {
|
||||
#define LWIP_UNUSED_ARG(x) (void)x
|
||||
#endif /* LWIP_UNUSED_ARG */
|
||||
|
||||
|
||||
#ifdef __cplusplus
|
||||
}
|
||||
#endif
|
||||
|
Loading…
x
Reference in New Issue
Block a user