summaryrefslogtreecommitdiff
path: root/src/common/tusb_compiler.h
diff options
context:
space:
mode:
authorhathach <[email protected]>2021-07-22 17:07:39 +0700
committerhathach <[email protected]>2021-07-22 17:07:39 +0700
commit4e50ceba48c15206543fe662f098a98152ef4235 (patch)
tree9b4f0ee3235dc258e65a1a1cab77fde272bb8458 /src/common/tusb_compiler.h
parentb35ad6edcb8b723c481246532349d21b35c46ac1 (diff)
rename packed begin/end
Diffstat (limited to 'src/common/tusb_compiler.h')
-rw-r--r--src/common/tusb_compiler.h8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/common/tusb_compiler.h b/src/common/tusb_compiler.h
index 6fdd08032..1f3128e0e 100644
--- a/src/common/tusb_compiler.h
+++ b/src/common/tusb_compiler.h
@@ -79,8 +79,8 @@
#define TU_ATTR_UNUSED __attribute__ ((unused)) // Function/Variable is meant to be possibly unused
#define TU_ATTR_USED __attribute__ ((used)) // Function/Variable is meant to be used
- #define TU_PACK_STRUCT_BEGIN
- #define TU_PACK_STRUCT_END
+ #define TU_ATTR_PACKED_BEGIN
+ #define TU_ATTR_PACKED_END
#define TU_BIT_FIELD_ORDER_BEGIN
#define TU_BIT_FIELD_ORDER_END
@@ -150,8 +150,8 @@
#define TU_ATTR_UNUSED
#define TU_ATTR_USED
- #define TU_PACK_STRUCT_BEGIN _Pragma("pack")
- #define TU_PACK_STRUCT_END _Pragma("packoption")
+ #define TU_ATTR_PACKED_BEGIN _Pragma("pack")
+ #define TU_ATTR_PACKED_END _Pragma("packoption")
#define TU_BIT_FIELD_ORDER_BEGIN _Pragma("bit_order right")
#define TU_BIT_FIELD_ORDER_END _Pragma("bit_order")