Browse Source

libobs/util: Contain simde diagnostic pragmas

tytan652 2 years ago
parent
commit
852dcf6f15
1 changed files with 4 additions and 0 deletions
  1. 4 0
      libobs/util/sse-intrin.h

+ 4 - 0
libobs/util/sse-intrin.h

@@ -17,6 +17,8 @@
 
 #pragma once
 
+#include "c99defs.h"
+
 #if (defined(_MSC_VER) || defined(__MINGW32__)) && \
 	((defined(_M_X64) && !defined(_M_ARM64EC)) || defined(_M_IX86))
 #include <emmintrin.h>
@@ -25,5 +27,7 @@
 #define WIN32_LEAN_AND_MEAN
 #endif
 #define SIMDE_ENABLE_NATIVE_ALIASES
+PRAGMA_WARN_PUSH
 #include "simde/x86/sse2.h"
+PRAGMA_WARN_POP
 #endif