From c94fc6c0c2db62293bd4f96b5a2c701facb126aa Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 14 Aug 2019 11:28:30 +0100 Subject: [PATCH] Add MBEDTLS_ALWAYS_INLINE macro to platform_util.h --- include/mbedtls/platform_util.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/include/mbedtls/platform_util.h b/include/mbedtls/platform_util.h index 09d096518..98384add7 100644 --- a/include/mbedtls/platform_util.h +++ b/include/mbedtls/platform_util.h @@ -113,6 +113,12 @@ void mbedtls_param_failed( const char *failure_condition, #endif /* MBEDTLS_CHECK_PARAMS */ +#if defined(__GNUC__) || defined(__arm__) +#define MBEDTLS_ALWAYS_INLINE __attribute__((always_inline)) +#else +#define MBEDTLS_ALWAYS_INLINE +#endif + /* Internal helper macros for deprecating API constants. */ #if !defined(MBEDTLS_DEPRECATED_REMOVED) #if defined(MBEDTLS_DEPRECATED_WARNING)