We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ccd7ca7 commit 0168ea1Copy full SHA for 0168ea1
src/unity_internals.h
@@ -40,10 +40,10 @@
40
#include <limits.h>
41
#endif
42
43
-#if defined __GNUC__
44
-# define UNITY_FUNCTION_ATTR(a) __attribute__((a))
+#if defined(__GNUC__) || defined(__clang__)
+ #define UNITY_FUNCTION_ATTR(a) __attribute__((a))
45
#else
46
-# define UNITY_FUNCTION_ATTR(a) /* ignore */
+ #define UNITY_FUNCTION_ATTR(a) /* ignore */
47
48
49
/*-------------------------------------------------------
0 commit comments