Skip to content

Commit

Permalink
Fix CMSIS __RESTRICT define for IAR
Browse files Browse the repository at this point in the history
Revert the define __RESTRICT from "__restrict" to "restrict". This
fixes compilation for IAR.
  • Loading branch information
c1728p9 committed Aug 26, 2018
1 parent d5be92a commit 308dfe3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cmsis/TARGET_CORTEX_A/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@
#endif

#ifndef __RESTRICT
#define __RESTRICT __restrict
#define __RESTRICT restrict
#endif

#ifndef __STATIC_INLINE
Expand Down
2 changes: 1 addition & 1 deletion cmsis/TARGET_CORTEX_M/cmsis_iccarm.h
Original file line number Diff line number Diff line change
Expand Up @@ -150,7 +150,7 @@
#endif

#ifndef __RESTRICT
#define __RESTRICT __restrict
#define __RESTRICT restrict
#endif

#ifndef __STATIC_INLINE
Expand Down

0 comments on commit 308dfe3

Please sign in to comment.