On Wed, Aug 14, 2013 at 06:13:45PM +0200, Jacob Erlbeck wrote:
Separate feature checking from implementation.
Supported are clang and
+# define _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE OSMO_GNUC_PREREQ(4,5)
+#if
defined(_OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE)
we both got it wrong. it needs to be #if _OSMO_HAS_ATTRIBUTE_DEPRECATED_WITH_MESSAGE >
0
because we unconditionally define these two for gcc and clang. :}