<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugs.webkit.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.4.1"
          urlbase="https://bugs.webkit.org/"
          
          maintainer="admin@webkit.org"
>

    <bug>
          <bug_id>39708</bug_id>
          
          <creation_ts>2010-05-25 22:27:12 -0700</creation_ts>
          <short_desc>Components which include npapi.h do not compile for winscw</short_desc>
          <delta_ts>2010-06-16 06:33:47 -0700</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>1</classification_id>
          <classification>Unclassified</classification>
          <product>WebKit</product>
          <component>WebKit Qt</component>
          <version>420+</version>
          <rep_platform>S60 Emulator</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>DUPLICATE</resolution>
          <dup_id>34614</dup_id>
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>Qt</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>0</everconfirmed>
          <reporter name="Shashank Hegde">hegde.shashank</reporter>
          <assigned_to name="Nobody">webkit-unassigned</assigned_to>
          <cc>hausmann</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>230579</commentid>
    <comment_count>0</comment_count>
    <who name="Shashank Hegde">hegde.shashank</who>
    <bug_when>2010-05-25 22:27:12 -0700</bug_when>
    <thetext>Trying to compile code that #include&apos;s QtWebKit&apos;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 &lt;windows.h&gt;
#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_ */</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>238833</commentid>
    <comment_count>1</comment_count>
    <who name="Simon Hausmann">hausmann</who>
    <bug_when>2010-06-16 06:33:47 -0700</bug_when>
    <thetext>

*** This bug has been marked as a duplicate of bug 34614 ***</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>