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 /*-------------------------------------------------------