Skip to content

Commit e630c83

Browse files
committed
Check if STBI_NEON already defined so no warning will be produced
1 parent 89176ef commit e630c83

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

stb_image.h

+2
Original file line numberDiff line numberDiff line change
@@ -781,8 +781,10 @@ static int stbi__sse2_available(void)
781781
#undef STBI_NEON
782782
#endif
783783
#elif defined(STBI__ARM64_TARGET)
784+
#if !defined(STBI_NEON)
784785
#define STBI_NEON
785786
#endif
787+
#endif
786788

787789
#ifdef STBI_NEON
788790
#include <arm_neon.h>

0 commit comments

Comments
 (0)