Use attribute always_inline only for GCC and ARM compiler
diff --git a/include/mbedtls/ssl_internal.h b/include/mbedtls/ssl_internal.h
index 0db867c..f1186ea 100644
--- a/include/mbedtls/ssl_internal.h
+++ b/include/mbedtls/ssl_internal.h
@@ -1724,7 +1724,13 @@
#endif /* MBEDTLS_SSL_CONF_SINGLE_SIG_HASH */
-__attribute__((always_inline)) static inline int mbedtls_ssl_pend_alert_message(
+#if defined(__GNUC__) || defined(__arm__)
+#define MBEDTLS_ALWAYS_INLINE __attribute__((always_inline))
+#else
+#define MBEDTLS_ALWAYS_INLINE
+#endif
+
+MBEDTLS_ALWAYS_INLINE static inline int mbedtls_ssl_pend_alert_message(
mbedtls_ssl_context *ssl,
unsigned char level,
unsigned char message )