Bug 18938 - No extern "C" wrapper in headers generated by XSL
Summary: No extern "C" wrapper in headers generated by XSL
Status: RESOLVED FIXED
Alias: None
Product: XCB
Classification: Unclassified
Component: Library (show other bugs)
Version: unspecified
Hardware: All All
: medium normal
Assignee: xcb mailing list dummy
QA Contact:
URL:
Whiteboard:
Keywords: patch
Depends on:
Blocks:
 
Reported: 2008-12-07 18:39 UTC by Sean Bartell
Modified: 2011-11-17 19:14 UTC (History)
0 users

See Also:
i915 platform:
i915 features:


Attachments
Fix (447 bytes, patch)
2008-12-07 18:39 UTC, Sean Bartell
Details | Splinter Review

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.