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
pull/253/head
Jeffrey Walton 2016-08-24 06:15:09 -04:00
parent ded4fd50a2
commit f7efde3a26
1 changed files with 4 additions and 0 deletions

4
rw.cpp
View File

@ -11,7 +11,11 @@
#ifndef CRYPTOPP_IMPORTS #ifndef CRYPTOPP_IMPORTS
#if defined(_OPENMP)
static const bool CRYPTOPP_RW_USE_OMP = true;
#else
static const bool CRYPTOPP_RW_USE_OMP = false; static const bool CRYPTOPP_RW_USE_OMP = false;
#endif
NAMESPACE_BEGIN(CryptoPP) NAMESPACE_BEGIN(CryptoPP)