Bug 39708
Summary: | Components which include npapi.h do not compile for winscw | ||
---|---|---|---|
Product: | WebKit | Reporter: | Shashank Hegde <hegde.shashank> |
Component: | WebKit Qt | Assignee: | Nobody <webkit-unassigned> |
Status: | RESOLVED DUPLICATE | ||
Severity: | Normal | CC: | hausmann |
Priority: | P2 | Keywords: | Qt |
Version: | 420+ | ||
Hardware: | S60 Emulator | ||
OS: | Windows XP |
Shashank Hegde
Trying to compile code that #include's QtWebKit's npapi.h for Symbian winscw fails with a compilation error saying windows.h cannot be opened.
[code from npapi.h]
#ifdef _WIN32
1. ifndef XP_WIN
2. define XP_WIN 1
3. endif /* XP_WIN */
#endif /* _WIN32 */
#ifdef _SYMBIAN32_
1. ifndef XP_SYMBIAN
2. define XP_SYMBIAN 1
3. endif
#endif /* _SYMBIAN32_ */
...
#ifdef XP_WIN
#include <windows.h>
#endif
...
[/code]
When building for winscw, both WIN32 and __SYMBIAN32_ are defined resulting in this compilation error.
Solution proposal:
#ifdef _SYMBIAN32_
ifndef XP_SYMBIAN
define XP_SYMBIAN 1
define XP_WIN 0
endif
#endif /* _SYMBIAN32_ */
Attachments | ||
---|---|---|
Add attachment proposed patch, testcase, etc. |
Simon Hausmann
*** This bug has been marked as a duplicate of bug 34614 ***