summaryrefslogtreecommitdiff
path: root/ec2n.cpp
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-12-04 04:13:58 -0500
committerJeffrey Walton <noloader@gmail.com>2018-12-04 04:13:58 -0500
commit800dd99c602241e573ade914b67901b9dee59db5 (patch)
tree79c051e42cde22e4b5cf3604772e5106d8760451 /ec2n.cpp
parent71ce30f75f81e18c23bcdd95e444f86f25464764 (diff)
downloadcryptopp-git-800dd99c602241e573ade914b67901b9dee59db5.tar.gz
Add init priorities for XLC compilers
Diffstat (limited to 'ec2n.cpp')
-rw-r--r--ec2n.cpp5
1 files changed, 4 insertions, 1 deletions
diff --git a/ec2n.cpp b/ec2n.cpp
index e3a0b285..97763232 100644
--- a/ec2n.cpp
+++ b/ec2n.cpp
@@ -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;