Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
TASTE
uPython-mirror
Commits
8bb11171
Commit
8bb11171
authored
Feb 16, 2014
by
Damien George
Browse files
stm: Only define __packed if not already defined.
Addresses issue #299.
parent
5fd7bc32
Changes
1
Hide whitespace changes
Inline
Side-by-side
stm/stmusb/usb_conf.h
View file @
8bb11171
...
...
@@ -293,7 +293,9 @@
#elif defined (__ICCARM__)
/* IAR Compiler */
#define __packed __packed
#elif defined ( __GNUC__ )
/* GNU Compiler */
#define __packed __attribute__ ((__packed__))
#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 */
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment