From: Tim Janik Date: Wed, 22 Nov 2006 15:54:58 +0000 (+0000) Subject: added G_GNUC_MAY_ALIAS, suggested by Mathias Hasselmann in bug #335341, X-Git-Url: http://git.openbox.org/?a=commitdiff_plain;h=6cf97938ec13b7bad389b98b1d2440679d774d3d;p=dana%2Fcg-glib.git added G_GNUC_MAY_ALIAS, suggested by Mathias Hasselmann in bug #335341, Wed Nov 22 16:09:13 2006 Tim Janik * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias Hasselmann in bug #335341, fixes bug #335853. --- diff --git a/ChangeLog b/ChangeLog index f1b4ec90..a885ac47 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +Wed Nov 22 16:09:13 2006 Tim Janik + + * glib/gmacros.h: added G_GNUC_MAY_ALIAS, suggested by Mathias + Hasselmann in bug #335341, fixes bug #335853. + 2006-11-15 Matthias Clasen * m4macros/glib-gettext.m4: Apply a patch from James diff --git a/glib/gmacros.h b/glib/gmacros.h index 7aba6381..7c9c87e8 100644 --- a/glib/gmacros.h +++ b/glib/gmacros.h @@ -95,6 +95,12 @@ #define G_GNUC_DEPRECATED #endif /* __GNUC__ */ +#if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 3) +# define G_GNUC_MAY_ALIAS __attribute__((may_alias)) +#else +# define G_GNUC_MAY_ALIAS +#endif + #if __GNUC__ > 3 || (__GNUC__ == 3 && __GNUC_MINOR__ >= 4) #define G_GNUC_WARN_UNUSED_RESULT \ __attribute__((warn_unused_result))