Merge pull request #543 from farrrb/bugfix/fix-issue-531

Enable __attribute__ when __clang__ is definedgit
This commit is contained in:
Mark VanderVoord
2021-02-26 13:01:42 -05:00
committed by GitHub
+3 -3
View File
@@ -40,10 +40,10 @@
#include <limits.h>
#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
/*-------------------------------------------------------