[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [PATCH] libxc, libxenstore: make the headers C++-friendly
>>> On 22.01.13 at 18:21, Razvan Cojocaru <rzvncj@xxxxxxxxx> wrote: >> Not exactly - with all of this being macros, the _consumer_ of >> DEFINE_RING_TYPES() could define private to rprivate (or >> whatever is being liked best), with the respective uses of the >> other macros using that field suitably placed inside the scope >> of that #define. > > All I have to do is #include <mem_event.h> and I get this build error > (with g++): > > /usr/include/xen/mem_event.h:71:1: error: expected â;â after union > definition > /usr/include/xen/mem_event.h:71:1: error: expected â:â before â;â token > > It goes away after renaming 'private' to something else (that's not a > C++ keyword). Not much room to maneuver around it from C++ code. As said - a #define around the consumer of DEFINE_RING_TYPES() would help; in the given case that's your inclusion of mem_event.h. Jan _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel
|
Lists.xenproject.org is hosted with RackSpace, monitoring our |