From 692ed2a2bbafcc724219a0126b0c6b5ffe8385c6 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sun, 15 Jul 2018 19:24:55 -0400 Subject: [PATCH] Fix SunStudio compile on Solaris --- cpu.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index 44148908..bda6523c 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -317,7 +317,7 @@ void DetectX86Features() CRYPTOPP_CONSTANT(AVX_FLAG = (3 << 27)) if ((cpuid1[2] & AVX_FLAG) == AVX_FLAG) { -#if defined(__GNUC__) +#if defined(__GNUC__) || defined(__SUNPRO_CC) // https://gcc.gnu.org/bugzilla/show_bug.cgi?id=71659 and // http://www.agner.org/optimize/vectorclass/read.php?i=65 word32 a=0, d=0;