Trying porting back WebKit

Randall Wood randall.h.wood at alexandriasoftware.com
Fri Jan 25 04:17:16 PST 2008


On 1/25/08, Anders F Björklund <afb at macports.org> wrote:
>
> Guido Soranzio wrote:
>
> >> Your best bet maybe to work with the WebKit developers, as WebKit is
> >> not Apple (its mostly Apple, but not just Apple).
> >
> > Indeed, the problem is that the includes of
> > AplicationServices.framework
> > are evaluated even when PLATFORM(GTK) is defined.
> ...
> > from Webcore/Configurations/WebCore.xcconfig but, when Frame.cpp
> > is compiled, the double definition of the struct Cursor is still
> > imported from the Carbon system includes.
>
> The usual workaround is to #define Cursor to something else,
> so that it won't conflict with the legacy Mac OS headers...


Don't forget that under certain conditions GTK will be compiled to run in
the Aqua environment and not in X11.

#if defined(__APPLE__) && defined(__MACH__)
> /* conflicts with Quickdraw.h */
> #define Cursor X11Cursor
> #endif
>
> #include <X11/Xlib.h>
> ...
>
> #if defined(__APPLE__) && defined(__MACH__)
> /* matches the re-define above */
> #undef Cursor
> #endif
>
> --anders
>
>


-- 
Randall Wood
randall.h.wood at alexandriasoftware.com

"The rules are simple: The ball is round. The game lasts 90 minutes. All the
rest is just philosophy."
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.macosforge.org/pipermail/macports-dev/attachments/20080125/c55ed1ab/attachment.html


More information about the macports-dev mailing list