Skip to content

Commit 308dfe3

Browse files
committed
Fix CMSIS __RESTRICT define for IAR
Revert the define __RESTRICT from "__restrict" to "restrict". This fixes compilation for IAR.
1 parent d5be92a commit 308dfe3

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

cmsis/TARGET_CORTEX_A/cmsis_iccarm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@
109109
#endif
110110

111111
#ifndef __RESTRICT
112-
#define __RESTRICT __restrict
112+
#define __RESTRICT restrict
113113
#endif
114114

115115
#ifndef __STATIC_INLINE

cmsis/TARGET_CORTEX_M/cmsis_iccarm.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@
150150
#endif
151151

152152
#ifndef __RESTRICT
153-
#define __RESTRICT __restrict
153+
#define __RESTRICT restrict
154154
#endif
155155

156156
#ifndef __STATIC_INLINE

0 commit comments

Comments
 (0)