From c290847719f897ffd5cfe58ae59d2dc3aec58aea Mon Sep 17 00:00:00 2001 From: Hanno Becker Date: Wed, 4 Sep 2019 16:56:11 +0100 Subject: [PATCH] Fixup md.h: Fix use of `inline` keyword in MSVC --- include/mbedtls/md.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/include/mbedtls/md.h b/include/mbedtls/md.h index 104c5777a..277656884 100644 --- a/include/mbedtls/md.h +++ b/include/mbedtls/md.h @@ -35,6 +35,11 @@ #include MBEDTLS_CONFIG_FILE #endif +#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ + !defined(inline) && !defined(__cplusplus) +#define inline __inline +#endif + #define MBEDTLS_ERR_MD_FEATURE_UNAVAILABLE -0x5080 /**< The selected feature is not available. */ #define MBEDTLS_ERR_MD_BAD_INPUT_DATA -0x5100 /**< Bad input parameters to function. */ #define MBEDTLS_ERR_MD_ALLOC_FAILED -0x5180 /**< Failed to allocate memory. */