Skip to content

Commit 61f4428

Browse files
authored
Merge pull request #543 from farrrb/bugfix/fix-issue-531
Enable __attribute__ when __clang__ is definedgit
2 parents ccd7ca7 + 0168ea1 commit 61f4428

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/unity_internals.h

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -40,10 +40,10 @@
4040
#include <limits.h>
4141
#endif
4242

43-
#if defined __GNUC__
44-
# define UNITY_FUNCTION_ATTR(a) __attribute__((a))
43+
#if defined(__GNUC__) || defined(__clang__)
44+
#define UNITY_FUNCTION_ATTR(a) __attribute__((a))
4545
#else
46-
# define UNITY_FUNCTION_ATTR(a) /* ignore */
46+
#define UNITY_FUNCTION_ATTR(a) /* ignore */
4747
#endif
4848

4949
/*-------------------------------------------------------

0 commit comments

Comments
 (0)