[Webkit-unassigned] [Bug 39708] New: Components which include npapi.h do not compile for winscw

bugzilla-daemon at webkit.org bugzilla-daemon at webkit.org
Tue May 25 22:27:12 PDT 2010


https://bugs.webkit.org/show_bug.cgi?id=39708

           Summary: Components which include npapi.h do not compile for
                    winscw
           Product: WebKit
           Version: 420+
          Platform: S60 Emulator
        OS/Version: Windows XP
            Status: UNCONFIRMED
          Severity: Normal
          Priority: P2
         Component: WebKit Qt
        AssignedTo: webkit-unassigned at lists.webkit.org
        ReportedBy: hegde.shashank at gmail.com


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_ */

-- 
Configure bugmail: https://bugs.webkit.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug.



More information about the webkit-unassigned mailing list