summaryrefslogtreecommitdiff
path: root/config.h
diff options
context:
space:
mode:
authorJeffrey Walton <noloader@gmail.com>2018-07-30 11:27:50 -0400
committerJeffrey Walton <noloader@gmail.com>2018-07-30 11:27:50 -0400
commit973fbf0e2f22cdd7a33d13955b9fa446842663ad (patch)
tree259985c5177f1a9b73cb275c92abc17d05080a25 /config.h
parentf290746a363a971dc55355fd829eb0f3b936eb8e (diff)
downloadcryptopp-git-973fbf0e2f22cdd7a33d13955b9fa446842663ad.tar.gz
Fix FixedSizeAllocatorWithCleanup assert on Solaris
Diffstat (limited to 'config.h')
-rw-r--r--config.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/config.h b/config.h
index f35c2bf2..00cff057 100644
--- a/config.h
+++ b/config.h
@@ -354,10 +354,11 @@ NAMESPACE_END
#endif
#endif
+// Sun Studio 12 provides GCC-style alignment.
#ifndef CRYPTOPP_ALIGN_DATA
#if defined(_MSC_VER)
#define CRYPTOPP_ALIGN_DATA(x) __declspec(align(x))
- #elif defined(__GNUC__)
+ #elif defined(__GNUC__) || (__SUNPRO_CC >= 0x5100)
#define CRYPTOPP_ALIGN_DATA(x) __attribute__((aligned(x)))
#else
#define CRYPTOPP_ALIGN_DATA(x)