Support the IBM compiler

This commit is contained in:
Frank Denis 2015-11-23 17:06:33 +01:00
parent d8b9b395a3
commit 82b41835c5
2 changed files with 4 additions and 4 deletions

View File

@ -53,7 +53,7 @@ extern "C" {
BLAKE2B_PERSONALBYTES = 16
};
#ifdef __SUNPRO_C
#if defined(__IBMC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
# pragma pack(1)
#else
# pragma pack(push, 1)
@ -129,7 +129,7 @@ CRYPTO_ALIGN( 64 ) typedef struct blake2b_state_
size_t buflen;
} blake2bp_state;
#ifdef __SUNPRO_C
#if defined(__IBMC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
# pragma pack()
#else
# pragma pack(pop)

View File

@ -14,7 +14,7 @@
extern "C" {
#endif
#ifdef __SUNPRO_C
#if defined(__IBMC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
# pragma pack(1)
#else
# pragma pack(push, 1)
@ -29,7 +29,7 @@ typedef CRYPTO_ALIGN(64) struct crypto_generichash_blake2b_state {
uint8_t last_node;
} crypto_generichash_blake2b_state;
#ifdef __SUNPRO_C
#if defined(__IBMC__) || defined(__SUNPRO_C) || defined(__SUNPRO_CC)
# pragma pack()
#else
# pragma pack(pop)