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:
parent
f571181d36
commit
f048cff093
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue