ia64/xen-unstable

changeset 15814:0f196e11a143

DEFINE_XEN_GUEST_HANDLE is evaluated by the pre-processor twice. Do this also for XEN_GUEST_HANDLE.

This fixes a build error for PV guests (OpenBSD, NetBSD) where the use
of XEN_GUEST_HANDLE(uint8_t) leads to a build error because uint8_t is
a #define instead a typedef.

Signed-off-by: Christoph Egger <Christoph.Egger@amd.com>
author kfraser@localhost.localdomain
date Fri Aug 31 11:12:57 2007 +0100 (2007-08-31)
parents 577313e3c0a6
children 96f64f4c42f0
files xen/include/public/arch-x86/xen.h
line diff
     1.1 --- a/xen/include/public/arch-x86/xen.h	Fri Aug 31 11:10:21 2007 +0100
     1.2 +++ b/xen/include/public/arch-x86/xen.h	Fri Aug 31 11:12:57 2007 +0100
     1.3 @@ -37,7 +37,8 @@
     1.4  #endif
     1.5  
     1.6  #define DEFINE_XEN_GUEST_HANDLE(name)   __DEFINE_XEN_GUEST_HANDLE(name, name)
     1.7 -#define XEN_GUEST_HANDLE(name)          __guest_handle_ ## name
     1.8 +#define __XEN_GUEST_HANDLE(name)        __guest_handle_ ## name
     1.9 +#define XEN_GUEST_HANDLE(name)          __XEN_GUEST_HANDLE(name)
    1.10  #define set_xen_guest_handle(hnd, val)  do { (hnd).p = val; } while (0)
    1.11  #ifdef __XEN_TOOLS__
    1.12  #define get_xen_guest_handle(val, hnd)  do { val = (hnd).p; } while (0)