From ddb8f36e8894a3bce7daeca0815fb0137de73388 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Sat, 15 Apr 2023 18:21:03 -0400 Subject: Fix use of for MSVC (GH #1198) It seems Microsoft now defines GCC defines, like __BMI__ --- misc.h | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'misc.h') diff --git a/misc.h b/misc.h index f81e81f4..be9fcf38 100644 --- a/misc.h +++ b/misc.h @@ -80,9 +80,11 @@ #endif #if defined(__BMI__) -# include +# if defined(CRYPTOPP_GCC_COMPATIBLE) +# include +# endif # include -#endif // GCC and BMI +#endif // BMI // More LLVM bullshit. Apple Clang 6.0 does not define them. // Later version of Clang defines them and results in warnings. -- cgit v1.2.1