Bug 20427

Summary: cairommconfig.h contains non-prefixed definitions
Product: cairomm Reporter: Armin Burgmeier <armin>
Component: GeneralAssignee: Murray Cumming <murrayc>
Status: RESOLVED FIXED QA Contact:
Severity: normal    
Priority: medium CC: matteo
Version: unspecified   
Hardware: Other   
OS: All   
Whiteboard:
i915 platform: i915 features:
Attachments: Proposed patch

Description Armin Burgmeier 2009-03-02 07:50:51 UTC
Created attachment 23446 [details] [review]
Proposed patch

cairommconfig.h contains several definitions such as PACKAGE or VERSION that can conflict with other projects. cairommconfig.h should only contain prefixed definitions, and there should be a separate (private) config.h for non-prefixed definitions.

The attached patch changes this and takes care that <config.h> is included instead of <cairommconfig.h> where appropriate.
Comment 1 Matteo Settenvini 2009-12-31 05:51:39 UTC
Hi, I've just migrated my project to using gtkmm+cairomm from using gtkmm+cairo. Since I use those variables internally too, I'm stuck with this bug throwing at me a lot of compiler warnings; can this patch be committed?

Thanks!
Comment 2 Jonathon Jongsma 2009-12-31 07:21:55 UTC
sorry, I forgot to close this bug.  A similar but slightly different fix was already included in 1.8.4.  So if you can update to that version, it should fix your problems.

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.