Explorar o código

libobs/util: Do not include SIMDe for MinGW targets

MinGW comes with it's own intrinsics macros as regular MSVC does.
On MinGW the inclusion of SIMDe would cause multiple definitions
of the same macro names.

Since sse-intrin.h leaks into the public header space this
will cause 3rd party plugins build with MinGW tool-chains emit
redeclaration warnings when including obs-module.h.
Florian Zwoch %!s(int64=2) %!d(string=hai) anos
pai
achega
dd6841143d
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      libobs/util/sse-intrin.h

+ 1 - 1
libobs/util/sse-intrin.h

@@ -17,7 +17,7 @@
 
 
 #pragma once
 #pragma once
 
 
-#if defined(_MSC_VER) && \
+#if (defined(_MSC_VER) || defined(__MINGW32__)) && \
 	((defined(_M_X64) && !defined(_M_ARM64EC)) || defined(_M_IX86))
 	((defined(_M_X64) && !defined(_M_ARM64EC)) || defined(_M_IX86))
 #include <emmintrin.h>
 #include <emmintrin.h>
 #else
 #else