aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tmk_core/protocol/arm_atsam/usb/compiler.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/tmk_core/protocol/arm_atsam/usb/compiler.h b/tmk_core/protocol/arm_atsam/usb/compiler.h
index 7d8350896..b2ccfd73e 100644
--- a/tmk_core/protocol/arm_atsam/usb/compiler.h
+++ b/tmk_core/protocol/arm_atsam/usb/compiler.h
@@ -134,13 +134,15 @@
134 * heuristics and inline the function no matter how big it thinks it 134 * heuristics and inline the function no matter how big it thinks it
135 * becomes. 135 * becomes.
136 */ 136 */
137#if !defined(__always_inline)
137#if defined(__CC_ARM) 138#if defined(__CC_ARM)
138# define __always_inline __forceinline 139# define __always_inline __forceinline
139#elif (defined __GNUC__ && __GNUC__ <= 6) 140#elif (defined __GNUC__)
140# define __always_inline __attribute__((__always_inline__)) 141# define __always_inline __attribute__((__always_inline__))
141#elif (defined __ICCARM__) 142#elif (defined __ICCARM__)
142# define __always_inline _Pragma("inline=forced") 143# define __always_inline _Pragma("inline=forced")
143#endif 144#endif
145#endif
144 146
145/** 147/**
146 * \def __no_inline 148 * \def __no_inline