diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-12-04 04:13:58 -0500 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-12-04 04:13:58 -0500 |
commit | 800dd99c602241e573ade914b67901b9dee59db5 (patch) | |
tree | 79c051e42cde22e4b5cf3604772e5106d8760451 /ec2n.cpp | |
parent | 71ce30f75f81e18c23bcdd95e444f86f25464764 (diff) | |
download | cryptopp-git-800dd99c602241e573ade914b67901b9dee59db5.tar.gz |
Add init priorities for XLC compilers
Diffstat (limited to 'ec2n.cpp')
-rw-r--r-- | ec2n.cpp | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -22,6 +22,9 @@ using CryptoPP::EC2N; #pragma init_seg(".CRT$XCU")
const EC2N::Point g_identity;
#pragma warning(default: 4075)
+#elif defined(HAVE_XLC_INIT_PRIORITY)
+ #pragma priority(290)
+ const EC2N::Point g_identity;
#endif
ANONYMOUS_NAMESPACE_END
@@ -192,7 +195,7 @@ bool EC2N::Equal(const Point &P, const Point &Q) const const EC2N::Point& EC2N::Identity() const
{
-#if defined(HAVE_GCC_INIT_PRIORITY) || defined(HAVE_MSC_INIT_PRIORITY)
+#if defined(HAVE_GCC_INIT_PRIORITY) || defined(HAVE_MSC_INIT_PRIORITY) || defined(HAVE_XLC_INIT_PRIORITY)
return g_identity;
#elif defined(CRYPTOPP_CXX11_DYNAMIC_INIT)
static const EC2N::Point g_identity;
|