1
0
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:
Mark VanderVoord
2021-02-26 13:01:42 -05:00
committed by GitHub

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