mirror of
https://github.com/obsproject/obs-studio.git
synced 2024-07-07 03:53:38 +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
|
#pragma once
|
||||||
|
|
||||||
#if defined(_MSC_VER) && (defined(_M_X64) || defined(_M_IX86)) && \
|
#if defined(_MSC_VER) && \
|
||||||
!(defined(_M_ARM64) || defined(_M_ARM64EC))
|
((defined(_M_X64) && !defined(_M_ARM64EC)) || defined(_M_IX86))
|
||||||
|
|
||||||
#include <emmintrin.h>
|
#include <emmintrin.h>
|
||||||
#else
|
#else
|
||||||
|
#ifndef WIN32_LEAN_AND_MEAN
|
||||||
|
#define WIN32_LEAN_AND_MEAN
|
||||||
|
#endif
|
||||||
#define SIMDE_ENABLE_NATIVE_ALIASES
|
#define SIMDE_ENABLE_NATIVE_ALIASES
|
||||||
#include "simde/x86/sse2.h"
|
#include "simde/x86/sse2.h"
|
||||||
#endif
|
#endif
|
||||||
|
|
Loading…
Reference in a new issue