All of lore.kernel.org
 help / color / mirror / Atom feed
From: Anthony Liguori <anthony@codemonkey.ws>
To: Peter Maydell <peter.maydell@linaro.org>
Cc: qemu-devel@nongnu.org, Aurelien Jarno <aurelien@aurel32.net>,
	patches@linaro.org
Subject: Re: [Qemu-devel] [PATCH] ia64-dis.c: Undefine ABS to avoid clash with glib
Date: Tue, 01 Nov 2011 13:04:05 -0500	[thread overview]
Message-ID: <4EB03495.1070504@codemonkey.ws> (raw)
In-Reply-To: <1319889506-20487-1-git-send-email-peter.maydell@linaro.org>

On 10/29/2011 06:58 AM, Peter Maydell wrote:
> Undefine ABS to avoid a clash with the macro that glib.h
> helpfully defines for us (and a resulting build failure
> on ia64 hosts).
>
> Signed-off-by: Peter Maydell<peter.maydell@linaro.org>

Applied.  Thanks.

Regards,

Anthony Liguori

> ---
> Bit of a namespace grab by glib.h if you ask me. Undefining
> ABS seems the most straightforward fix.
>
>   ia64-dis.c |    3 +++
>   1 files changed, 3 insertions(+), 0 deletions(-)
>
> diff --git a/ia64-dis.c b/ia64-dis.c
> index 2886df3..2a103e6 100644
> --- a/ia64-dis.c
> +++ b/ia64-dis.c
> @@ -781,6 +781,9 @@ ext_inc3 (const struct ia64_operand *self, ia64_insn code, ia64_insn *valuep)
>     return 0;
>   }
>
> +/* glib.h defines ABS so we must undefine it to avoid a clash */
> +#undef ABS
> +
>   #define CST	IA64_OPND_CLASS_CST
>   #define REG	IA64_OPND_CLASS_REG
>   #define IND	IA64_OPND_CLASS_IND

      reply	other threads:[~2011-11-01 18:04 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-10-29 11:58 [Qemu-devel] [PATCH] ia64-dis.c: Undefine ABS to avoid clash with glib Peter Maydell
2011-11-01 18:04 ` Anthony Liguori [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=4EB03495.1070504@codemonkey.ws \
    --to=anthony@codemonkey.ws \
    --cc=aurelien@aurel32.net \
    --cc=patches@linaro.org \
    --cc=peter.maydell@linaro.org \
    --cc=qemu-devel@nongnu.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.