[webkit-dev] Best practices for PLATFORM(X) vs. HAVE(X) vs. USE(X) vs. ENABLE(X)? (was: Best practices for USE(X) vs. ENABLE(X)?)

Adam Roben aroben at apple.com
Wed Nov 12 14:07:17 PST 2008

On Nov 12, 2008, at 4:57 PM, Darin Adler wrote:

> On Nov 12, 2008, at 1:44 PM, Adam Roben wrote:
>> I guess while we're at it we might as well clear up the meaning of  
>> PLATFORM(X) and HAVE(X), as well.
> I believe PLATFORM is for large scale questions like "What kind of  
> compiler is this?"

For that specific question we have COMPILER(X). But I think I  
understand what you're getting at.

It seems to me that we have two conflicting kinds of uses of PLATFORM.

Use 1: Defining whether to use large platform libraries, e.g,  
Use 2: Defining a whole "port" or "flavor" of WebKit, e.g.,  

It might be beneficial to have separate macros for Use 1 and Use 2.


More information about the webkit-dev mailing list