libobs/util: Simplify emmintrin.h wrapper macro

Also add WIN32_LEAN_AND_MEAN for external Windows.h include.
This commit is contained in:
jpark37 2021-09-17 21:19:58 -07:00 committed by Jim
parent 02d98b26a0
commit 4ca8cdfc0a

View file

@ -17,11 +17,13 @@
#pragma once
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)) && \
!(defined(_M_ARM64) || defined(_M_ARM64EC))
#if defined(_MSC_VER) && \
((defined(_M_X64) && !defined(_M_ARM64EC)) || defined(_M_IX86))
#include <emmintrin.h>
#else
#ifndef WIN32_LEAN_AND_MEAN
#define WIN32_LEAN_AND_MEAN
#endif
#define SIMDE_ENABLE_NATIVE_ALIASES
#include "simde/x86/sse2.h"
#endif