Skip to content

Commit

Permalink
Check if STBI_NEON already defined so no warning will be produced
Browse files Browse the repository at this point in the history
  • Loading branch information
plzombie committed Apr 3, 2024
1 parent 220964d commit 89f598d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions stb_image.h
Original file line number Diff line number Diff line change
Expand Up @@ -781,8 +781,10 @@ static int stbi__sse2_available(void)
#undef STBI_NEON
#endif
#elif defined(STBI__ARM64_TARGET)
#if !defined(STBI_NEON)
#define STBI_NEON
#endif
#endif

#ifdef STBI_NEON
#include <arm_neon.h>
Expand Down

0 comments on commit 89f598d

Please sign in to comment.