From 0168ea1541128188a4515c85c92df6936071dbfd Mon Sep 17 00:00:00 2001 From: Fabian Zahn Date: Fri, 26 Feb 2021 18:46:27 +0100 Subject: [PATCH] Enable __attribute__ when __clang__ is definedgit --- src/unity_internals.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/unity_internals.h b/src/unity_internals.h index 79c305e9..b86fefa3 100644 --- a/src/unity_internals.h +++ b/src/unity_internals.h @@ -40,10 +40,10 @@ #include #endif -#if defined __GNUC__ -# define UNITY_FUNCTION_ATTR(a) __attribute__((a)) +#if defined(__GNUC__) || defined(__clang__) + #define UNITY_FUNCTION_ATTR(a) __attribute__((a)) #else -# define UNITY_FUNCTION_ATTR(a) /* ignore */ + #define UNITY_FUNCTION_ATTR(a) /* ignore */ #endif /*-------------------------------------------------------