瀏覽代碼

libobs/util: Simplify emmintrin.h wrapper macro

Also add WIN32_LEAN_AND_MEAN for external Windows.h include.
jpark37 4 年之前
父節點
當前提交
4ca8cdfc0a
共有 1 個文件被更改,包括 5 次插入3 次删除
  1. 5 3
      libobs/util/sse-intrin.h

+ 5 - 3
libobs/util/sse-intrin.h

@@ -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