<?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>162059</bug_id>
          
          <creation_ts>2016-09-16 06:01:33 -0700</creation_ts>
          <short_desc>[Win] Compile fix.</short_desc>
          <delta_ts>2016-09-16 10:38: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>WebCore Misc.</component>
          <version>WebKit Nightly Build</version>
          <rep_platform>Unspecified</rep_platform>
          <op_sys>Unspecified</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords>InRadar</keywords>
          <priority>P2</priority>
          <bug_severity>Normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Per Arne Vollan">pvollan</reporter>
          <assigned_to name="Per Arne Vollan">pvollan</assigned_to>
          <cc>achristensen</cc>
    
    <cc>bfulgham</cc>
    
    <cc>commit-queue</cc>
    
    <cc>webkit-bug-importer</cc>
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>1230384</commentid>
    <comment_count>0</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-16 06:01:33 -0700</bug_when>
    <thetext>If the JavaScripCore folder with forwarding headers contains the inspector folder with derived sources, I get the following compile error:

webkitbuild\release\derivedsources\forwardingheaders\javascriptcore\InspectorProtocolObjects.h(304): error C2995: &apos;WTF::String Inspector::Protocol::InspectorHelpers::getEnumConstantValue(T)&apos;: function template has already been defined (compiling source file C:\Projects\WebKit2\OpenSource\Source\WebCore\inspector\InspectorAllInOne.cpp)
\webkitbuild\release\derivedsources\forwardingheaders\javascriptcore\inspector\InspectorProtocolObjects.h(301): note: see declaration of &apos;Inspector::Protocol::InspectorHelpers::getEnumConstantValue&apos; (compiling source file C:\Projects\WebKit2\OpenSource\Source\WebCore\inspector\InspectorAllInOne.cpp)

This happens because the file InspectorProtocolObjects.h exists in both folders, and #pragma once will not prevent us from including both files.

An include of the type &lt;inspector/InspectorProtocolObjects.h&gt; will include the file from the inspector folder, while &lt;JavaScriptCore/InspectorProtocolObjects.h&gt; will include the file from the JavaScriptCore folder.

This can be fixed by putting the WebCore forwarding folder first in the include list. This means that &lt;inspector/InspectorProtocolObjects.h&gt; will also include the file in the JavaScriptCore folder.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230387</commentid>
    <comment_count>1</comment_count>
      <attachid>289059</attachid>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-16 06:12:48 -0700</bug_when>
    <thetext>Created attachment 289059
Patch</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230388</commentid>
    <comment_count>2</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-16 06:59:31 -0700</bug_when>
    <thetext>&lt;rdar://problem/28279258&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230406</commentid>
    <comment_count>3</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-09-16 09:17:48 -0700</bug_when>
    <thetext>Windows EWS is seeing this.  Does it fix this?

C:\cygwin\home\buildbot\WebKit\Source\WebCore\DerivedSources.cpp(345): fatal error C1083: Cannot open include file: &apos;JSMediaStreamTrackSourcesCallback.cpp&apos;: No such file or directory [C:\cygwin\home\buildbot\WebKit\WebKitBuild\Release\Source\WebCore\WebCoreDerivedSources.vcxproj]</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230408</commentid>
    <comment_count>4</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-09-16 09:21:28 -0700</bug_when>
    <thetext>That&apos;s a separate issue.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230412</commentid>
    <comment_count>5</comment_count>
    <who name="Alex Christensen">achristensen</who>
    <bug_when>2016-09-16 09:24:07 -0700</bug_when>
    <thetext>I fixed the other issue in r206024</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230422</commentid>
    <comment_count>6</comment_count>
      <attachid>289059</attachid>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-09-16 09:42:52 -0700</bug_when>
    <thetext>Comment on attachment 289059
Patch

Clearing flags on attachment: 289059

Committed r206027: &lt;http://trac.webkit.org/changeset/206027&gt;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230423</commentid>
    <comment_count>7</comment_count>
    <who name="WebKit Commit Bot">commit-queue</who>
    <bug_when>2016-09-16 09:42:56 -0700</bug_when>
    <thetext>All reviewed patches have been landed.  Closing bug.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>1230450</commentid>
    <comment_count>8</comment_count>
    <who name="Per Arne Vollan">pvollan</who>
    <bug_when>2016-09-16 10:38:47 -0700</bug_when>
    <thetext>(In reply to comment #5)
&gt; I fixed the other issue in r206024

Thanks, Alex!</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>289059</attachid>
            <date>2016-09-16 06:12:48 -0700</date>
            <delta_ts>2016-09-16 09:42:52 -0700</delta_ts>
            <desc>Patch</desc>
            <filename>bug-162059-20160916061011.patch</filename>
            <type>text/plain</type>
            <size>1680</size>
            <attacher name="Per Arne Vollan">pvollan</attacher>
            
              <data encoding="base64">SW5kZXg6IFNvdXJjZS9XZWJDb3JlL0NoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBTb3VyY2UvV2Vi
Q29yZS9DaGFuZ2VMb2cJKHJldmlzaW9uID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