Changeset 37473 in webkit for trunk/JavaScriptCore/API/WebKitAvailability.h
- Timestamp:
- Oct 9, 2008, 11:12:10 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/WebKitAvailability.h
r37471 r37473 56 56 #endif 57 57 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 this60 by wrapping the annotation in WEBKIT_CATEGORY_METHOD_ANNOTATION, which will remove the annotation when an old version61 of GCC is in use and will otherwiseexpand 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. 62 62 */ 63 63 #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 69 67 #endif 70 68
Note:
See TracChangeset
for help on using the changeset viewer.