mirror of
https://github.com/verilator/verilator.git
synced 2026-10-02 16:13:34 +02:00
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.
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user