Changeset 37471 in webkit for trunk/JavaScriptCore/API/WebKitAvailability.h
- Timestamp:
- Oct 9, 2008, 9:34:30 PM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/JavaScriptCore/API/WebKitAvailability.h
r35854 r37471 59 59 declared in a category. If we are building with one of these versions, we need to omit the attribute. We achieve this 60 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. 61 of GCC is in use and will otherwise expand to the annotation. The same is needed for protocol methods. 62 62 */ 63 63 #if defined(__APPLE_CC__) && __APPLE_CC__ < 5400 64 64 #define WEBKIT_CATEGORY_METHOD_ANNOTATION(ANNOTATION) 65 #define WEBKIT_PROTOCOL_METHOD_ANNOTATION(ANNOTATION) 65 66 #else 66 67 #define WEBKIT_CATEGORY_METHOD_ANNOTATION(ANNOTATION) ANNOTATION 68 #define WEBKIT_PROTOCOL_METHOD_ANNOTATION(ANNOTATION) ANNOTATION 67 69 #endif 68 70
Note:
See TracChangeset
for help on using the changeset viewer.