From 2bae175257059fb7827c045c9cd112b9639081d0 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 19 Jun 2016 11:22:06 -0400 Subject: [PATCH] =?UTF-8?q?Fix=20"=20error:=20expected=20unqualified-id=20?= =?UTF-8?q?before=20=E2=80=98int=E2=80=99"=20when=20using=20GCC=205.3/i686?= =?UTF-8?q?=20with=20-std=3Dc++11=20or=20-std=3Dc++14?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- cpu.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/cpu.h b/cpu.h index 5a5b1a70..daee1350 100644 --- a/cpu.h +++ b/cpu.h @@ -41,6 +41,14 @@ # include # endif +// GCC 5.3/i686 fails to declare __m128 in the headers we use when compiling with -std=c++11 or -std=c++14. +// Consequently, our _mm_shuffle_epi8, _mm_extract_epi32, etc fails to compile. +#if defined(__has_include) +# if __has_include() +# include +# endif +#endif + // PUSHFB needs Clang 3.3 and Apple Clang 5.0. #if CRYPTOPP_BOOL_AESNI_INTRINSICS_AVAILABLE #if !defined(__GNUC__) || defined(__SSSE3__)|| defined(__INTEL_COMPILER) || (CRYPTOPP_CLANG_VERSION >= 30300) || (CRYPTOPP_APPLE_CLANG_VERSION >= 50000)