RESOLVED DUPLICATE of bug 34614 39708
Components which include npapi.h do not compile for winscw
https://bugs.webkit.org/show_bug.cgi?id=39708
Summary Components which include npapi.h do not compile for winscw
Shashank Hegde
Reported 2010-05-25 22:27:12 PDT
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
Simon Hausmann
Comment 1 2010-06-16 06:33:47 PDT
*** This bug has been marked as a duplicate of bug 34614 ***
Note You need to log in before you can comment on or make changes to this bug.