From 09562f9831cdab37bb447e158bb14c25ae5e06b0 Mon Sep 17 00:00:00 2001 From: vsfos Date: Wed, 30 Oct 2024 17:19:31 +0800 Subject: [PATCH] [utilities/compiler] implement _Static_assert for IAR --- source/utilities/compiler/arm/type.h | 3 +++ 1 file changed, 3 insertions(+) diff --git a/source/utilities/compiler/arm/type.h b/source/utilities/compiler/arm/type.h index f117712aa..763f725b2 100644 --- a/source/utilities/compiler/arm/type.h +++ b/source/utilities/compiler/arm/type.h @@ -104,6 +104,9 @@ typedef int_fast8_t intalu_t; #if __IS_COMPILER_IAR__ +// IAR has no _Static_assert, but has static_assert +#define _Static_assert static_assert + // iar has no such constants in math.h # define M_E 2.71828182845904523536 // e # define M_LOG2E 1.44269504088896340736 // log2(e)