summaryrefslogtreecommitdiffstats
path: root/src/libcryptobox/base64/sse42.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/libcryptobox/base64/sse42.c')
-rw-r--r--src/libcryptobox/base64/sse42.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/libcryptobox/base64/sse42.c b/src/libcryptobox/base64/sse42.c
index 806dd5298..f3b812dc9 100644
--- a/src/libcryptobox/base64/sse42.c
+++ b/src/libcryptobox/base64/sse42.c
@@ -49,8 +49,10 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
extern const uint8_t base64_table_dec[256];
#ifdef RSPAMD_HAS_TARGET_ATTR
+#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC push_options
#pragma GCC target("sse4.2")
+#endif
#ifndef __SSE2__
#define __SSE2__
#endif
@@ -263,5 +265,7 @@ repeat:
return ret;
}
+#if defined(__GNUC__) && !defined(__clang__)
#pragma GCC pop_options
#endif
+#endif