mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-04 10:33:30 +00:00
libobs/util: Simplify emmintrin.h wrapper macro
Also add WIN32_LEAN_AND_MEAN for external Windows.h include.
This commit is contained in:
parent
02d98b26a0
commit
4ca8cdfc0a
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue