From d10c290fb3b47bbc8fd90d6d1d7935b900c1caf6 Mon Sep 17 00:00:00 2001
From: Pascal Obry <pascal@obry.net>
Date: Thu, 24 Dec 2020 16:17:19 +0100
Subject: [PATCH] guided_filter: include xmmintrin.h only if SSE defined.

Fixes #7428.
---
 src/common/guided_filter.h | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/src/common/guided_filter.h b/src/common/guided_filter.h
index 36be0de04b9..59c8b2af999 100644
--- a/src/common/guided_filter.h
+++ b/src/common/guided_filter.h
@@ -18,6 +18,7 @@
 
 #pragma once
 
+#if defined(__SSE__)
 #ifdef __PPC64__
 #ifdef NO_WARN_X86_INTRINSICS
 #include <xmmintrin.h>
@@ -29,6 +30,7 @@
 #else
 #include <xmmintrin.h>
 #endif // __PPC64__
+#endif
 
 #include "common/darktable.h"
 #include "common/opencl.h"
