summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--tmk_core/protocol/arm_atsam/usb/compiler.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/tmk_core/protocol/arm_atsam/usb/compiler.h b/tmk_core/protocol/arm_atsam/usb/compiler.h
index d338439867..7d8350896b 100644
--- a/tmk_core/protocol/arm_atsam/usb/compiler.h
+++ b/tmk_core/protocol/arm_atsam/usb/compiler.h
@@ -136,7 +136,7 @@
*/
#if defined(__CC_ARM)
# define __always_inline __forceinline
-#elif (defined __GNUC__)
+#elif (defined __GNUC__ && __GNUC__ <= 6)
# define __always_inline __attribute__((__always_inline__))
#elif (defined __ICCARM__)
# define __always_inline _Pragma("inline=forced")