On 08/14/2013 08:24 PM, Holger Hans Peter Freyther wrote:
On Wed, Aug 14, 2013 at 06:13:45PM +0200, Jacob
Erlbeck wrote:
+#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. :}
No, it's just '#if _OSMO_HAS_FOO' since non-macro identifiers are
considered 0 (according to 'info cpp'). I've verified this with gcc and
clang. And I've installed gcc-4.4 to check stuff like this before
jenkins does.
Jacob