Summary: | exempi hardcodes Mac OS X header location | ||
---|---|---|---|
Product: | exempi | Reporter: | Misty De Meo <mistydemeo> |
Component: | Problems | Assignee: | Hubert Figuiere <hub> |
Status: | RESOLVED FIXED | QA Contact: | Hubert Figuiere <hub> |
Severity: | normal | ||
Priority: | medium | CC: | mistydemeo |
Version: | unspecified | ||
Hardware: | Other | ||
OS: | Mac OS X (All) | ||
Whiteboard: | [release:2.2.1] | ||
i915 platform: | i915 features: | ||
Attachments: | Patch to replace header usage |
Description
Misty De Meo
2012-12-12 07:23:05 UTC
I knew the hack would come to bite me. I don't have a Mac dev machine at the moment. Patches welcome Created attachment 72819 [details] [review] Patch to replace header usage Turns out to have been pretty simple. The include path being hardcoded was the FlatCarbon one, which is actually a set of shims to simulate the OS 9 Carbon layout. All of the headers exempi was using actually just point to CoreServices/CoreServices.h, which we don't need an include path for since we already add `-framework CoreServices` to the flags. This patch replaces the appropriate headers and removes the hardcoded path altogether. Incidentally, this doesn't break compatibility with older OS X versions. I can confirm that this works at least as far back as Tiger. I'll have a look at it this week. Thanks a lot ! Ok, it does change the Adobe code, but I actually like the solution short of creating "fake headers" Pushed into git master. Thanks ! http://cgit.freedesktop.org/exempi/commit/?id=6c1a7111fd98f03559abe1883b5e25c289e56ca0 This is in 2.2.1 |
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.