summaryrefslogtreecommitdiff
path: root/compat/function-attributes.h
AgeCommit message (Collapse)Author
2012-09-27Provide a NORETURN_ATTRIBUTE macro similar to PRINTF_ATTRIBUTEJustus Winter
This attribute is understood by gcc since version 2.5. clang provides support for testing for function attributes using __has_attribute. For other compilers this macro evaluates to the empty string. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>
2012-09-27Provide a __has_attribute compatibility macroJustus Winter
__has_attribute is defined by clang and tests whether a given function attribute is supported by clang. Add a compatibility macro for other compilers. Signed-off-by: Justus Winter <4winter@informatik.uni-hamburg.de>