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

Re: [Xen-devel] [PATCH] libxc, libxenstore: make the headers C++-friendly

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
/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.

Razvan Cojocaru

Xen-devel mailing list



Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.