From 468df317bfea56a90eaf983b26fa8e9541c04aff Mon Sep 17 00:00:00 2001 From: Dave Rodgman Date: Wed, 23 Nov 2022 16:56:35 +0000 Subject: [PATCH] Fix MSVC support for inline keyword Signed-off-by: Dave Rodgman --- library/common.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/library/common.h b/library/common.h index 3925a79ce5..808d13de2a 100644 --- a/library/common.h +++ b/library/common.h @@ -28,6 +28,11 @@ #include #include +#if ( defined(__ARMCC_VERSION) || defined(_MSC_VER) ) && \ + !defined(inline) && !defined(__cplusplus) +#define inline __inline +#endif + /** Helper to define a function as static except when building invasive tests. * * If a function is only used inside its own source file and should be