diff options
author | Morten Larsen <morten.larsen@anywi.com> | 2022-01-18 00:56:49 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2022-02-06 03:15:00 +0000 |
commit | 951e4490fb562ba07966b5fd765dbd2ea9829479 (patch) | |
tree | 499e8e22034ebc73a1de2594a17bcc0b028b5730 /Userland | |
parent | 2c3b2978959c85c996c088f9c9db434df1736bdc (diff) | |
download | serenity-951e4490fb562ba07966b5fd765dbd2ea9829479.zip |
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.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Libraries/LibGfx/Gamma.h | 5 |
1 files changed, 4 insertions, 1 deletions
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 <AK/Math.h> -#include <xmmintrin.h> + +#ifdef __SSE__ +# include <xmmintrin.h> +#endif #include <AK/SIMD.h> |