From 42ddd639520704a825a7b156113a28d0a3a69c1c Mon Sep 17 00:00:00 2001 From: Chris Conlon Date: Fri, 18 Oct 2019 16:33:01 -0600 Subject: [PATCH] exclude packed __attribute__ on IAR ICC < 9 --- wolfssl/wolfcrypt/types.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/wolfssl/wolfcrypt/types.h b/wolfssl/wolfcrypt/types.h index 7c8cc1d7d..4cedf31b6 100644 --- a/wolfssl/wolfcrypt/types.h +++ b/wolfssl/wolfcrypt/types.h @@ -862,7 +862,8 @@ #endif - #if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__) + #if (defined(__IAR_SYSTEMS_ICC__) && (__IAR_SYSTEMS_ICC__ > 8)) || \ + defined(__GNUC__) #define WOLFSSL_PACK __attribute__ ((packed)) #else #define WOLFSSL_PACK