Fix failing IAR builds, thanks to Joseph C. for the report

This commit is contained in:
kaleb-himes
2019-08-28 12:44:05 -06:00
parent 411f15bec3
commit 46b4654564
6 changed files with 12 additions and 12 deletions

View File

@ -98,7 +98,7 @@ enum {
* information associated with the SSL session.
*/
#if defined(__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define WOLFSSL_PACK __attribute__ ((packed))
#else
#define WOLFSSL_PACK

View File

@ -42,7 +42,7 @@
#if defined(_MSC_VER)
#define ALIGN(x) __declspec(align(x))
#elif defined(__GNUC__)
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define ALIGN(x) __attribute__((aligned(x)))
#else
#define ALIGN(x)

View File

@ -91,7 +91,7 @@
#if defined(_MSC_VER)
#define SHA256_NOINLINE __declspec(noinline)
#elif defined(__GNUC__)
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define SHA256_NOINLINE __attribute__((noinline))
#else
#define SHA256_NOINLINE

View File

@ -77,7 +77,7 @@
#endif
#if defined(_MSC_VER)
#define SHA512_NOINLINE __declspec(noinline)
#elif defined(__GNUC__)
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define SHA512_NOINLINE __attribute__((noinline))
#else
#define SHA512_NOINLINE

View File

@ -37,7 +37,7 @@
#if defined(_MSC_VER)
#define SP_NOINLINE __declspec(noinline)
#elif defined(__GNUC__)
#elif defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define SP_NOINLINE __attribute__((noinline))
#else
#define SP_NOINLINE

View File

@ -758,7 +758,7 @@
#if defined(WOLFSSL_AESNI) || defined(WOLFSSL_ARMASM) || \
defined(USE_INTEL_SPEEDUP) || defined(WOLFSSL_AFALG_XILINX)
#if !defined(ALIGN16)
#if defined(__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define ALIGN16 __attribute__ ( (aligned (16)))
#elif defined(_MSC_VER)
/* disable align warning, we want alignment ! */
@ -770,7 +770,7 @@
#endif /* !ALIGN16 */
#if !defined (ALIGN32)
#if defined (__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define ALIGN32 __attribute__ ( (aligned (32)))
#elif defined(_MSC_VER)
/* disable align warning, we want alignment ! */
@ -782,7 +782,7 @@
#endif /* !ALIGN32 */
#if !defined(ALIGN64)
#if defined(__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define ALIGN64 __attribute__ ( (aligned (64)))
#elif defined(_MSC_VER)
/* disable align warning, we want alignment ! */
@ -793,7 +793,7 @@
#endif
#endif /* !ALIGN64 */
#if defined(__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define ALIGN128 __attribute__ ( (aligned (128)))
#elif defined(_MSC_VER)
/* disable align warning, we want alignment ! */
@ -803,7 +803,7 @@
#define ALIGN128
#endif
#if defined(__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define ALIGN256 __attribute__ ( (aligned (256)))
#elif defined(_MSC_VER)
/* disable align warning, we want alignment ! */
@ -847,7 +847,7 @@
#endif
#if defined(__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define WOLFSSL_PACK __attribute__ ((packed))
#else
#define WOLFSSL_PACK
@ -862,7 +862,7 @@
#endif
#endif
#if defined(__GNUC__)
#if defined(__IAR_SYSTEMS_ICC__) || defined(__GNUC__)
#define WC_NORETURN __attribute__((noreturn))
#else
#define WC_NORETURN