All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Cooper <andrew.cooper3@citrix.com>
To: Igor Kozhukhov <ikozhukhov@gmail.com>
Cc: xen-devel@lists.xen.org
Subject: Re: conflict in public header for values definitions
Date: Fri, 3 Jan 2014 18:43:26 +0000	[thread overview]
Message-ID: <52C704CE.5080003@citrix.com> (raw)
In-Reply-To: <167FDCF3-92DC-4CF9-97F8-A636122FB8B2@gmail.com>

On 03/01/14 18:38, Igor Kozhukhov wrote:
> Hello All,
>
> I'm working on port xen-4.2 to illumos based platform - DilOS - and have problems with conflicts for:
>
> xen/include/public/trace.h :
>
> struct t_buf {}
> struct t_info {}
>
> I have a questions - can we rename structures to:
> struct t_buf_xen {}
> struct t_info_xen {}
>
> Will it be applicable for Xen sources ?

You would break the compilation for every other user of trace.h, so no.

If it conflicts with something locally, you could do something like:
(completely untested)

#define t_buf t_buf_xen
#include <public/trace.h>
#undef t_buf

And use t_buf_xen in your own code.

~Andrew

  reply	other threads:[~2014-01-03 18:43 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-01-03 18:38 conflict in public header for values definitions Igor Kozhukhov
2014-01-03 18:43 ` Andrew Cooper [this message]
2014-01-03 19:49   ` Igor Kozhukhov
2014-01-07 12:40     ` Jan Beulich
2014-01-06 10:18 ` Ian Campbell

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=52C704CE.5080003@citrix.com \
    --to=andrew.cooper3@citrix.com \
    --cc=ikozhukhov@gmail.com \
    --cc=xen-devel@lists.xen.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.