From 173a7a80259910933645911aaf912dd9c32d5095 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Fri, 15 Sep 2017 12:42:50 -0400 Subject: [PATCH] Fix compile under Embarcadero (GH #498) [bcc32 Error] cpu.cpp (131): E2211 Inline assembly not allowed in inline and template functions --- cpu.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/cpu.cpp b/cpu.cpp index 69e5d701..7f736d61 100644 --- a/cpu.cpp +++ b/cpu.cpp @@ -123,7 +123,9 @@ extern "C" } #endif -inline bool CpuId(word32 func, word32 subfunc, word32 output[4]) +// Embarcadero and Issue 498 +// cpu.cpp (131): E2211 Inline assembly not allowed in inline and template functions +bool CpuId(word32 func, word32 subfunc, word32 output[4]) { #if defined(CRYPTOPP_MS_STYLE_INLINE_ASSEMBLY) __try