1
0
mirror of https://github.com/ThrowTheSwitch/Unity.git synced 2026-01-23 08:25:58 +01:00

Enable __attribute__ when __clang__ is definedgit

This commit is contained in:
Fabian Zahn
2021-02-26 18:46:27 +01:00
parent ccd7ca72f3
commit 0168ea1541

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