Prevent collisions in GCC attribute definitions

(cherry picked from commit 6484885600)
This commit is contained in:
Daniel M. Weeks
2015-04-08 20:00:00 -04:00
committed by Carbenium
parent df4b175d68
commit 67faa0f458

View File

@@ -78,9 +78,9 @@
#endif //!COREDEBUG
#if COMPILER == COMPILER_GNU
# define ATTR_NORETURN __attribute__((noreturn))
# define ATTR_PRINTF(F, V) __attribute__ ((format (printf, F, V)))
# define ATTR_DEPRECATED __attribute__((deprecated))
# define ATTR_NORETURN __attribute__((__noreturn__))
# define ATTR_PRINTF(F, V) __attribute__ ((__format__ (__printf__, F, V)))
# define ATTR_DEPRECATED __attribute__((__deprecated__))
#else //COMPILER != COMPILER_GNU
# define ATTR_NORETURN
# define ATTR_PRINTF(F, V)