Skip to content
Snippets Groups Projects
Commit 8bb11171 authored by Damien George's avatar Damien George
Browse files

stm: Only define __packed if not already defined.

Addresses issue #299.
parent 5fd7bc32
No related branches found
No related tags found
No related merge requests found
......@@ -293,7 +293,9 @@
#elif defined (__ICCARM__) /* IAR Compiler */
#define __packed __packed
#elif defined ( __GNUC__ ) /* GNU Compiler */
#ifndef __packed /* dpgeorge: add check for already defined symbol, since some compilers define it in cdefs.h */
#define __packed __attribute__ ((__packed__))
#endif
#elif defined (__TASKING__) /* TASKING Compiler */
#define __packed __unaligned
#endif /* __CC_ARM */
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment