From f048cff093e75c07840745c25ad8cd4cd8f0e2e4 Mon Sep 17 00:00:00 2001 From: Geza Lore Date: Sat, 2 Dec 2023 22:51:59 +0100 Subject: [PATCH] Add inline for VL_ATTR_ALWINLINE, even on non GNU-C platforms (#4734) This is required to avoid multiple definition errors at link time for functions defined in headers and marked VL_ATTR_ALWINLINE. --- include/verilatedos.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/verilatedos.h b/include/verilatedos.h index a3a515518..19e8c133a 100644 --- a/include/verilatedos.h +++ b/include/verilatedos.h @@ -138,7 +138,7 @@ // Defaults for unsupported compiler features #ifndef VL_ATTR_ALWINLINE -# define VL_ATTR_ALWINLINE ///< Attribute to inline, even when not optimizing +# define VL_ATTR_ALWINLINE inline ///< Attribute to inline, even when not optimizing #endif #ifndef VL_ATTR_NOINLINE # define VL_ATTR_NOINLINE ///< Attribute to never inline, even when optimizing