Fix compile under Embarcadero (GH #498)

[bcc32 Error] cpu.cpp (131): E2211 Inline assembly not allowed in inline and template functions
pull/507/head
Jeffrey Walton 2017-09-15 12:42:50 -04:00
parent adea69ab68
commit 173a7a8025
No known key found for this signature in database
GPG Key ID: B36AB348921B1838
1 changed files with 3 additions and 1 deletions

View File

@ -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