Whitespace check-in
parent
fc5019a89e
commit
71ce30f75f
|
|
@ -1,4 +1,4 @@
|
|||
#include <cstdint>
|
||||
#include <stdint.h>
|
||||
#include <immintrin.h>
|
||||
int main(int argc, char* argv[])
|
||||
{
|
||||
|
|
|
|||
42
cryptlib.cpp
42
cryptlib.cpp
|
|
@ -995,31 +995,29 @@ public:
|
|||
};
|
||||
|
||||
#if HAVE_GCC_INIT_PRIORITY
|
||||
CRYPTOPP_COMPILE_ASSERT(CRYPTOPP_INIT_PRIORITY >= 101);
|
||||
const std::string DEFAULT_CHANNEL __attribute__ ((init_priority (CRYPTOPP_INIT_PRIORITY + 25))) = "";
|
||||
const std::string AAD_CHANNEL __attribute__ ((init_priority (CRYPTOPP_INIT_PRIORITY + 26))) = "AAD";
|
||||
const NullNameValuePairs s_nullNameValuePairs __attribute__ ((init_priority (CRYPTOPP_INIT_PRIORITY + 27)));
|
||||
const NameValuePairs& g_nullNameValuePairs = s_nullNameValuePairs;
|
||||
const std::string DEFAULT_CHANNEL __attribute__ ((init_priority (CRYPTOPP_INIT_PRIORITY + 25))) = "";
|
||||
const std::string AAD_CHANNEL __attribute__ ((init_priority (CRYPTOPP_INIT_PRIORITY + 26))) = "AAD";
|
||||
const NullNameValuePairs s_nullNameValuePairs __attribute__ ((init_priority (CRYPTOPP_INIT_PRIORITY + 27)));
|
||||
const NameValuePairs& g_nullNameValuePairs = s_nullNameValuePairs;
|
||||
#elif HAVE_MSC_INIT_PRIORITY
|
||||
#pragma warning(disable: 4073)
|
||||
#pragma init_seg(lib)
|
||||
const std::string DEFAULT_CHANNEL = "";
|
||||
const std::string AAD_CHANNEL = "AAD";
|
||||
const NullNameValuePairs s_nullNameValuePairs;
|
||||
const NameValuePairs& g_nullNameValuePairs = s_nullNameValuePairs;
|
||||
#pragma warning(default: 4073)
|
||||
#pragma warning(disable: 4073)
|
||||
#pragma init_seg(lib)
|
||||
const std::string DEFAULT_CHANNEL = "";
|
||||
const std::string AAD_CHANNEL = "AAD";
|
||||
const NullNameValuePairs s_nullNameValuePairs;
|
||||
const NameValuePairs& g_nullNameValuePairs = s_nullNameValuePairs;
|
||||
#pragma warning(default: 4073)
|
||||
#elif HAVE_XLC_INIT_PRIORITY
|
||||
#pragma priority(260)
|
||||
const std::string DEFAULT_CHANNEL = "";
|
||||
const std::string AAD_CHANNEL = "AAD";
|
||||
const NullNameValuePairs s_nullNameValuePairs;
|
||||
const NameValuePairs& g_nullNameValuePairs = s_nullNameValuePairs;
|
||||
#pragma priority(260)
|
||||
const std::string DEFAULT_CHANNEL = "";
|
||||
const std::string AAD_CHANNEL = "AAD";
|
||||
const NullNameValuePairs s_nullNameValuePairs;
|
||||
const NameValuePairs& g_nullNameValuePairs = s_nullNameValuePairs;
|
||||
#else
|
||||
static const std::string s1(""), s2("AAD");
|
||||
const std::string DEFAULT_CHANNEL = s1;
|
||||
const std::string AAD_CHANNEL = s2;
|
||||
const simple_ptr<NullNameValuePairs> s_pNullNameValuePairs(new NullNameValuePairs);
|
||||
const NameValuePairs &g_nullNameValuePairs = *s_pNullNameValuePairs.m_p;
|
||||
const std::string DEFAULT_CHANNEL = "";
|
||||
const std::string AAD_CHANNEL = "AAD";
|
||||
const simple_ptr<NullNameValuePairs> s_pNullNameValuePairs(new NullNameValuePairs);
|
||||
const NameValuePairs &g_nullNameValuePairs = *s_pNullNameValuePairs.m_p;
|
||||
#endif
|
||||
|
||||
NAMESPACE_END // CryptoPP
|
||||
|
|
|
|||
Loading…
Reference in New Issue