Skip to content

Commit 020693b

Browse files
committed
Functions defined in headers should be static inline
If `load_uint8x16_4` has an external linkage, it is defined in both `generator` and `parser` extension libraries. This duplicate symbol causes a linker error when `--with-static-linked-ext` is given, on some platforms.
1 parent cfe9337 commit 020693b

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ext/json/ext/simd/simd.h

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,8 @@ static inline FORCE_INLINE int string_scan_simd_neon(const char **ptr, const cha
103103
return 0;
104104
}
105105

106-
uint8x16x4_t load_uint8x16_4(const unsigned char *table) {
106+
static inline uint8x16x4_t load_uint8x16_4(const unsigned char *table)
107+
{
107108
uint8x16x4_t tab;
108109
tab.val[0] = vld1q_u8(table);
109110
tab.val[1] = vld1q_u8(table+16);

0 commit comments

Comments
 (0)