mirror of
https://github.com/ThrowTheSwitch/Unity.git
synced 2026-01-23 08:25:58 +01:00
Merge pull request #543 from farrrb/bugfix/fix-issue-531
Enable __attribute__ when __clang__ is definedgit
This commit is contained in:
@@ -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
|
||||
|
||||
/*-------------------------------------------------------
|
||||
|
||||
Reference in New Issue
Block a user