From: Vsevolod Stakhov Date: Mon, 6 Feb 2017 17:40:23 +0000 (+0000) Subject: [Minor] Fix build X-Git-Tag: 1.5.0~168 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5840268601eec9e16a42395d60063afa5eb09628;p=thirdparty%2Frspamd.git [Minor] Fix build --- diff --git a/src/libcryptobox/base64/sse42.c b/src/libcryptobox/base64/sse42.c index 53af47342a..ea5a6e1d6a 100644 --- a/src/libcryptobox/base64/sse42.c +++ b/src/libcryptobox/base64/sse42.c @@ -49,6 +49,23 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. extern const uint8_t base64_table_dec[256]; #ifdef RSPAMD_HAS_TARGET_ATTR +#pragma GCC push_options +#pragma GCC target("sse4.2") +#ifndef __SSE2__ +#define __SSE2__ +#endif +#ifndef __SSE__ +#define __SSE__ +#endif +#ifndef __SSE4_2__ +#define __SSE4_2__ +#endif +#ifndef __SSE4_1__ +#define __SSE4_1__ +#endif +#ifndef __SSEE3__ +#define __SSEE3__ +#endif #include #include @@ -232,4 +249,6 @@ repeat: return ret; } + +#pragma GCC pop_options #endif