From 329981583b0451e3e12990b00000cb425cb6a198 Mon Sep 17 00:00:00 2001 From: Ryan Curtin Date: Thu, 23 Jan 2025 10:11:19 -0500 Subject: [PATCH] Add missing STBIRDEF to allow implementation in multiple translation units. --- stb_image_resize2.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/stb_image_resize2.h b/stb_image_resize2.h index 2f26274636..d07676f7f6 100644 --- a/stb_image_resize2.h +++ b/stb_image_resize2.h @@ -1451,8 +1451,8 @@ static stbir__inline stbir_uint8 stbir__linear_to_srgb_uchar(float in) #include #define stbir__simdf_pack_to_8words(out,reg0,reg1) out = _mm_packus_epi32(_mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg0,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps())), _mm_cvttps_epi32(_mm_max_ps(_mm_min_ps(reg1,STBIR__CONSTF(STBIR_max_uint16_as_float)),_mm_setzero_ps()))) #else - STBIR__SIMDI_CONST(stbir__s32_32768, 32768); - STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768)); + STBIRDEF STBIR__SIMDI_CONST(stbir__s32_32768, 32768); + STBIRDEF STBIR__SIMDI_CONST(stbir__s16_32768, ((32768<<16)|32768)); #define stbir__simdf_pack_to_8words(out,reg0,reg1) \ { \