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:
Geza Lore
2023-12-02 21:51:59 +00:00
committed by GitHub
parent f571181d36
commit f048cff093
+1 -1
View File
@@ -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