From dd6841143d354627aebe8fff0ac6b4dc342e6784 Mon Sep 17 00:00:00 2001 From: Florian Zwoch Date: Tue, 4 Apr 2023 09:58:10 +0200 Subject: [PATCH] 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. --- libobs/util/sse-intrin.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libobs/util/sse-intrin.h b/libobs/util/sse-intrin.h index 6441e8064..a813e79ce 100644 --- a/libobs/util/sse-intrin.h +++ b/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 #else