From 951e4490fb562ba07966b5fd765dbd2ea9829479 Mon Sep 17 00:00:00 2001 From: Morten Larsen Date: Tue, 18 Jan 2022 00:56:49 +0100 Subject: [PATCH] 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. --- Userland/Libraries/LibGfx/Gamma.h | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Userland/Libraries/LibGfx/Gamma.h b/Userland/Libraries/LibGfx/Gamma.h index 04bc7dfa6c..dbb645aa18 100644 --- a/Userland/Libraries/LibGfx/Gamma.h +++ b/Userland/Libraries/LibGfx/Gamma.h @@ -8,7 +8,10 @@ #include "Color.h" #include -#include + +#ifdef __SSE__ +# include +#endif #include