From f7efde3a2645af4dad2e921a3412ea63d914ffe6 Mon Sep 17 00:00:00 2001 From: Jeffrey Walton Date: Wed, 24 Aug 2016 06:15:09 -0400 Subject: [PATCH] Enable OpenMP by default for RWSS if -fopnmp is present. The user asked for OMP, and they can turn it off for the source file if they desire --- rw.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/rw.cpp b/rw.cpp index 0767a132..15aa6646 100644 --- a/rw.cpp +++ b/rw.cpp @@ -11,7 +11,11 @@ #ifndef CRYPTOPP_IMPORTS +#if defined(_OPENMP) +static const bool CRYPTOPP_RW_USE_OMP = true; +#else static const bool CRYPTOPP_RW_USE_OMP = false; +#endif NAMESPACE_BEGIN(CryptoPP)