qemu-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [Qemu-devel] [PATCH for-2.0] vl.c: Fix OpenBSD compilation issue due


From: Peter Maydell
Subject: Re: [Qemu-devel] [PATCH for-2.0] vl.c: Fix OpenBSD compilation issue due to namespace collisions
Date: Tue, 18 Mar 2014 14:28:35 +0000

On 18 March 2014 14:27, Marcel Apfelbaum <address@hidden> wrote:
> On Tue, 2014-03-18 at 16:05 +0200, Marcel Apfelbaum wrote:
>> On Tue, 2014-03-18 at 13:57 +0000, Peter Maydell wrote:
>> > I'm confused; why doesn't this just result in a compiler
>> > error in the other direction when we try to #define
>> > MACHINE in QEMU and it's already been defined by
>> > the BSD headers?
>> Maybe because there is usage of the "MACHINE" define by the BSD
>> library? (on Qemu context, of course! - meaning, it shouldn't even be
>> exposed in the first place!)
> I meant "there is *no* usage of the..."

But we'll still see
#define MACHINE something
and then later
#define MACHINE something-else

right? The compiler ought to complain about that, at point
of the second #define; use or otherwise of the macro isn't
relevant here.

thanks
-- PMM



reply via email to

[Prev in Thread] Current Thread [Next in Thread]