[Xcb] no extern "C" in the generated header files

Vincent Torri vtorri at univ-evry.fr
Sun Mar 8 08:10:54 PDT 2009



On Sun, 8 Mar 2009, Peter Harris wrote:

> On Sun, Mar 8, 2009 at 10:58 AM, Vincent Torri wrote:
>>
>> There is no extern "C" in the generated header files. This breaks linking
>> with a c++ compiler. Is it a bug in the python parser ?
>
> No. It is a bug in the C++ program that tries to include a C header
> outside of extern "C".

in all the C header files i know, there's always a

#ifdef __cplusplus
extern "C" {
#endif

and

#ifdef __cplusplus
}
#endif

around the declaration functions and variables that are exported.

Vincent


More information about the Xcb mailing list