Ignore:
Timestamp:
Oct 9, 2008, 11:12:10 PM (17 years ago)
Author:
[email protected]
Message:

Full build fix for the fail on Tiger.

File:
1 edited

Legend:

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

    r37471 r37473  
    5656#endif
    5757
    58 /* The versions of GCC that shipped with Xcode prior to 3.0 (GCC build number < 5400) did not support attributes on methods
    59    declared in a category.  If we are building with one of these versions, we need to omit the attribute.  We achieve this
    60    by wrapping the annotation in WEBKIT_CATEGORY_METHOD_ANNOTATION, which will remove the annotation when an old version
    61    of GCC is in use and will otherwise expand to the annotation. The same is needed for protocol methods.
     58/* The versions of GCC that shipped with Xcode prior to 3.0 (GCC build number < 5400) did not support attributes on methods.
     59   If we are building with one of these versions, we need to omit the attribute.  We achieve this by wrapping the annotation
     60   in WEBKIT_OBJC_METHOD_ANNOTATION, which will remove the annotation when an old version of GCC is in use and will otherwise
     61   expand to the annotation. The same is needed for protocol methods.
    6262*/
    6363#if defined(__APPLE_CC__) && __APPLE_CC__ < 5400
    64     #define WEBKIT_CATEGORY_METHOD_ANNOTATION(ANNOTATION)
    65     #define WEBKIT_PROTOCOL_METHOD_ANNOTATION(ANNOTATION)
    66 #else
    67     #define WEBKIT_CATEGORY_METHOD_ANNOTATION(ANNOTATION) ANNOTATION
    68     #define WEBKIT_PROTOCOL_METHOD_ANNOTATION(ANNOTATION) ANNOTATION
     64    #define WEBKIT_OBJC_METHOD_ANNOTATION(ANNOTATION)
     65#else
     66    #define WEBKIT_OBJC_METHOD_ANNOTATION(ANNOTATION) ANNOTATION
    6967#endif
    7068
Note: See TracChangeset for help on using the changeset viewer.