Provide a __has_attribute compatibility macro
authorJustus Winter <4winter@informatik.uni-hamburg.de>
Mon, 24 Sep 2012 15:21:15 +0000 (17:21 +0200)
committerDavid Bremner <bremner@debian.org>
Thu, 27 Sep 2012 15:49:13 +0000 (12:49 -0300)
commitda12807734cc90d8bf78ce5814636aaf5a18827b
tree27eb016ecc1129fff721d72dc574e9b2bf6dc153
parentf164784d56b76d7babb44b942d43e3d1009d158a
Provide a __has_attribute compatibility macro

__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>
compat/function-attributes.h [new file with mode: 0644]