diff --git a/wolfssl/sniffer.h b/wolfssl/sniffer.h index 99ec96084..b5f9cb78b 100644 --- a/wolfssl/sniffer.h +++ b/wolfssl/sniffer.h @@ -98,7 +98,8 @@ enum { * information associated with the SSL session. */ -#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