Bug 18938

Summary: No extern "C" wrapper in headers generated by XSL
Product: XCB Reporter: Sean Bartell <wingedtachikoma>
Component: LibraryAssignee: xcb mailing list dummy <xcb>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium Keywords: patch
Version: unspecified   
Hardware: All   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Fix

Description Sean Bartell 2008-12-07 18:39:29 UTC
Created attachment 20879 [details] [review]
Fix

In the C headers generated by c-client.xsl, there is no #ifdef __cplusplus / extern "C" wrapper. The wrapper is present in xcb/xcb.h and in headers generated by c_client.py. This means that C++ code that includes the generated headers needs to use extern "C" around the #include.

Patch attached.
Comment 1 Dan Cecile 2011-11-17 18:23:10 UTC
I think c-client.xsl has been deleted. Can this bug be rejected?
Comment 2 Jamey Sharp 2011-11-17 19:14:47 UTC
Good point. This bug was fixed by switching to the Python code generator.

Use of freedesktop.org services, including Bugzilla, is subject to our Code of Conduct. How we collect and use information is described in our Privacy Policy.