Open macosforgebot opened 15 years ago
stuart@… originally submitted this as comment:1:ticket:50
Replying to probono@…:
However, the CFOpenDirectory binary root does not contain that file.
This may be caused by CFOpenDirectory failing to build, in turn caused by its reliance on <CoreFoundation/CFRuntimePriv.h>. This header is not currently distributed with CFLite (source or root).
Further, I'd guess that CFRuntimePriv.h #defines the CF_IS_OBJC, CF_OBJC_CALL, CF_OBJC_VOIDCALL and CF_OBJC_FUNCDISPATCH macros, and that their absence is causing build to fail.
One possible solution which has worked for me (in XCode) is to locally define CF_IS_OBJC as (FALSE) and the others as no-ops (eg. do { } while(0)). This is the approach adopted in demilitarising CFLite. After this, compile succeeds.
probono@… originally submitted this as ticket:50
The OpenDirectory framework depends on the CFOpenDirectory framework:
However, the CFOpenDirectory binary root does not contain that file.