Ignore:
Timestamp:
Jul 10, 2008, 11:10:30 PM (17 years ago)
Author:
[email protected]
Message:

Fix the Tiger build by omitting annotations from methods declared in categories when using old versions of GCC.

Reviewed by Sam Weinig.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/API/WebKitAvailability.h

    r33053 r35120  
    4444
    4545
     46/* The versions of GCC that shipped with Xcode prior to 3.0 (GCC build number < 5400) did not support attributes on methods
     47   declared in a category.  If we are building with one of these versions, we need to omit the attribute.  We achieve this
     48   by wrapping the annotation in WEBKIT_CATEGORY_METHOD_ANNOTATION, which will remove the annotation when an old version
     49   of GCC is in use and will otherwise expand to the annotation.
     50*/
     51#if defined(__APPLE_CC__) && __APPLE_CC__ < 5400
     52    #define WEBKIT_CATEGORY_METHOD_ANNOTATION(ANNOTATION)
     53#else
     54    #define WEBKIT_CATEGORY_METHOD_ANNOTATION(ANNOTATION) ANNOTATION
     55#endif
     56
    4657
    4758/* If minimum WebKit version is not specified, assume the version that shipped with the target Mac OS X version */
Note: See TracChangeset for help on using the changeset viewer.