The WebKit2/config.h header has the following OBJC_CLASS macro defined: #ifdef __OBJC__ #define OBJC_CLASS @class #else #define OBJC_CLASS class #endif This makes it possible to declare classes once for both Obj-C[++] and C++ source. It would remove over 20 lines of declarations in Source/WebCore/platform/mac/WebCoreSystemInterface.h and other headers where both types must be declared.
Maybe we could even put it in wtf/Platform.h ?
(In reply to comment #1) > Maybe we could even put it in wtf/Platform.h ? I found that I had to add OBJC_CLASS to WebKitPrefix.h because of its use in all of the WebCore headers, so I think that moving it to Platform.h would cut down on the duplication between projects.
*** This bug has been marked as a duplicate of bug 76485 ***