Defining it `static inline` fixed the issue.