Commit 609cea1eb8149944c00018eb5209965995055d0b

Sam Lantinga 2021-08-10T17:14:06

Enable SSE3 intrinsics when building with Visual Studio Fixes https://github.com/libsdl-org/SDL/issues/4530

1
2
3
4
5
6
7
8
9
10
11
12
13
14
diff --git a/include/SDL_cpuinfo.h b/include/SDL_cpuinfo.h
index 4401c37..aa3f4bb 100644
--- a/include/SDL_cpuinfo.h
+++ b/include/SDL_cpuinfo.h
@@ -63,6 +63,9 @@ _m_prefetch(void *__P)
 #ifndef __SSE2__
 #define __SSE2__
 #endif
+#ifndef __SSE3__
+#define __SSE3__
+#endif
 #elif defined(__MINGW64_VERSION_MAJOR)
 #include <intrin.h>
 #if !defined(SDL_DISABLE_ARM_NEON_H) && defined(__ARM_NEON)