summaryrefslogtreecommitdiff
path: root/tinyusb/common
diff options
context:
space:
mode:
Diffstat (limited to 'tinyusb/common')
-rw-r--r--tinyusb/common/compiler/compiler_gcc.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/tinyusb/common/compiler/compiler_gcc.h b/tinyusb/common/compiler/compiler_gcc.h
index 2db8b222f..d2abc748f 100644
--- a/tinyusb/common/compiler/compiler_gcc.h
+++ b/tinyusb/common/compiler/compiler_gcc.h
@@ -74,6 +74,8 @@
#define ATTR_PACKED __attribute__ ((packed))
#define ATTR_PREPACKED
+
+#define ATTR_PACKED_STRUCT(x) x __attribute__ ((packed))
/** @} */
/**