Procházet zdrojové kódy

LibGfx: Avoid inclusion of xmmintrin.h on non-X86 architectures

Gamma.h includes xmmintrin.h, which is X86-only. The file contains
code in other places that is compiled conditionally on __SSE__, so the
same macro is used to determine inclusion of the header.
Morten Larsen před 3 roky
rodič
revize
951e4490fb
1 změnil soubory, kde provedl 4 přidání a 1 odebrání
  1. 4 1
      Userland/Libraries/LibGfx/Gamma.h

+ 4 - 1
Userland/Libraries/LibGfx/Gamma.h

@@ -8,7 +8,10 @@
 
 
 #include "Color.h"
 #include "Color.h"
 #include <AK/Math.h>
 #include <AK/Math.h>
-#include <xmmintrin.h>
+
+#ifdef __SSE__
+#    include <xmmintrin.h>
+#endif
 
 
 #include <AK/SIMD.h>
 #include <AK/SIMD.h>