WebKit Bugzilla
New
Browse
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED DUPLICATE of
bug 76485
56462
Implement OBJC_CLASS macro in WebCore/config.h
https://bugs.webkit.org/show_bug.cgi?id=56462
Summary
Implement OBJC_CLASS macro in WebCore/config.h
David Kilzer (:ddkilzer)
Reported
2011-03-16 08:12:16 PDT
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.
Attachments
Add attachment
proposed patch, testcase, etc.
Anders Carlsson
Comment 1
2011-03-16 09:50:43 PDT
Maybe we could even put it in wtf/Platform.h ?
David Kilzer (:ddkilzer)
Comment 2
2011-03-17 08:38:20 PDT
(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.
Sam Weinig
Comment 3
2012-01-17 21:57:53 PST
*** This bug has been marked as a duplicate of
bug 76485
***
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug