aboutsummaryrefslogtreecommitdiffhomepage
path: root/compat/function-attributes.h
Commit message (Collapse)AuthorAge
* Provide a NORETURN_ATTRIBUTE macro similar to PRINTF_ATTRIBUTEGravatar Justus Winter2012-09-27
| | | | | | | | 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>
* Provide a __has_attribute compatibility macroGravatar Justus Winter2012-09-27
__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>