[Xcb] xcb_atom.h with missing c++ facilities
Ian Osgood
iano at quirkster.com
Thu May 21 10:00:30 PDT 2009
My opinion: these are C libraries (XCB == "X C Binding") and thus
should have no C++ constructs in their source or headers. It is up
to C++ users of XCB to wrap xcb includes in extern "C" { } as needed,
as they would do when using any other C library. If it were me, I
would remove all #ifdef __cplusplus stuff from xcb-util and other xcb
related repository code.
Ian
On May 21, 2009, at 9:31 AM, comick wrote:
> I'm using xcb_atom.h in a C++ project.
> I had problems with the linking phase and after a research i fixed
> the problem
> with something like:
>
> #ifdef __cplusplus
> extern "C" {
> #endif
> #include <xcb/xcb_atom.h>
> #ifdef __cplusplus
> }
> #endif
>
> extern is present in all other xcb utils packages, so i think
> should be added
> to xcb_atom too.
>
> Hope this help.
>
>
> _______________________________________________
> Xcb mailing list
> Xcb at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/xcb
More information about the Xcb
mailing list