diff options
author | Jeffrey Walton <noloader@gmail.com> | 2018-07-30 11:27:50 -0400 |
---|---|---|
committer | Jeffrey Walton <noloader@gmail.com> | 2018-07-30 11:27:50 -0400 |
commit | 973fbf0e2f22cdd7a33d13955b9fa446842663ad (patch) | |
tree | 259985c5177f1a9b73cb275c92abc17d05080a25 /config.h | |
parent | f290746a363a971dc55355fd829eb0f3b936eb8e (diff) | |
download | cryptopp-git-973fbf0e2f22cdd7a33d13955b9fa446842663ad.tar.gz |
Fix FixedSizeAllocatorWithCleanup assert on Solaris
Diffstat (limited to 'config.h')
-rw-r--r-- | config.h | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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)
|