ソースを参照

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 2 年 前
コミット
dd6841143d
1 ファイル変更1 行追加1 行削除
  1. 1 1
      libobs/util/sse-intrin.h

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

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