Summary: | PRAGMA_EXPORT_SUPPORTED defined incorrectly on OS X | ||
---|---|---|---|
Product: | Mesa | Reporter: | thakis |
Component: | Mesa core | Assignee: | mesa-dev |
Status: | RESOLVED FIXED | QA Contact: | |
Severity: | normal | ||
Priority: | medium | ||
Version: | unspecified | ||
Hardware: | Other | ||
OS: | All | ||
Whiteboard: | |||
i915 platform: | i915 features: | ||
Attachments: |
patch
patch |
Description
thakis
2014-04-21 22:38:00 UTC
Yup, Quickdraw.h defines __QUICKDRAW__. The header gets pulled in like this (with the 10.8 sdk): ..... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/ApplicationServices.framework/Headers/ApplicationServices.h ...... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/QD.h ....... /Applications/Xcode.app/Contents/Developer/Platforms/MacOSX.platform/Developer/SDKs/MacOSX10.8.sdk/System/Library/Frameworks/ApplicationServices.framework/Frameworks/QD.framework/Headers/Quickdraw.h (Clarification: gl.h defines PRAGMA_EXPORT_SUPPORTED; osmesa.h uses "pragma export" directly if __QUICKDRAW__ is defined) Created attachment 97758 [details] [review] patch Here's how a patch to remove this might look. I removed "pragma import" too -- while this doesn't cause warnings, it looks like this was used only on very old versions on OS X. The patch looks OK to me. I'm always happy to get rid of old system-specific crud. But I can't apply the patch here to test it: $ patch -p0 < ~/mesaport.diff patching file include/GL/gl.h patch: **** malformed patch at line 16: @@ -92,10 +87,6 @@ Do I need a special option for patch? Created attachment 97921 [details] [review] patch Oh sorry. I had manually edited the patch as it was relative to our slightly forked mesa -- always a bad idea :-) Here's the same patch relative to an earlier revision of ours, which should hopefully apply cleanly (or at least enable patch to read it.) (Thanks for the quick turnaround!) The new patch still doesn't apply to master. But I've posted a patch with the same intention to the mailing list for review. Fixed in commit 50034c017125b9538cd1e88b7344574da5bf3c9a Thank you! |
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.