From: Cody B. <co...@zo...> - 2012-07-28 06:20:32
|
In Mac OS X 10.8, due to the deprecation of Apple Type Services and its replacement with CoreText, including CarbonEvents.h now causes the CoreText headers to be included along with it. startui.c includes fontforgeui.h, which further down the line includes splinefont.h; this header declares a struct with the name AnchorPoint. The problem in 10.8: startui.c also includes CarbonEvents.h, which in turn pulls in the CoreText headers. One of these, SFNTLayoutTypes.h, defines a struct type known as... AnchorPoint. (Nope, no prefix or anything. Just "AnchorPoint".) It seems like the trivial thing to do here would be either to rename our AnchorPoint to something else, or to make some changes in startui.c. Alternatively, there's what I did in Homebrew, which was simply to link against the 10.7 API for now... but that will eventually be deprecated... Also related, the fix previously proposed for the "/Developer" header relocation no longer works, as the FlatCarbon directory no longer exists in the 10.8 API. I'm not sure if there are better paths to use, but the relevant headers now appear to be at: /System/Library/Frameworks/CoreServices.framework/Versions/A/Frameworks/CarbonCore.framework/Versions/A/Headers/Files.h /System/Library/Frameworks/Carbon.framework/Versions/A/Frameworks/HIToolbox.framework/Versions/A/Headers/CarbonEvents.h -- Cody "codeman38" Boisclair co...@zo... http://www.zone38.net/ |