浏览代码

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