<?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>21229</bug_id>
          
          <creation_ts>2008-09-29 21:43:31 -0700</creation_ts>
          <short_desc>NetworkStateNotifier.h lacks a #include &lt;windows.h&gt; for PLATFORM(WIN)</short_desc>
          <delta_ts>2008-10-12 19:14:05 -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>Platform</component>
          <version>528+ (Nightly build)</version>
          <rep_platform>PC</rep_platform>
          <op_sys>Windows XP</op_sys>
          <bug_status>RESOLVED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P2</priority>
          <bug_severity>Trivial</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Darin Fisher (:fishd, Google)">fishd</reporter>
          <assigned_to name="Darin Adler">darin</assigned_to>
          
          

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>93331</commentid>
    <comment_count>0</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-09-29 21:43:31 -0700</bug_when>
    <thetext>NetworkStateNotifier.h lacks a #include &lt;windows.h&gt;

This causes build problems if you do not force include windows.h, which seems like an undesirable requirement (to me at least).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93343</commentid>
    <comment_count>1</comment_count>
      <attachid>23934</attachid>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-09-30 01:41:24 -0700</bug_when>
    <thetext>Created attachment 23934
v1 patch

Simple fix.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93378</commentid>
    <comment_count>2</comment_count>
      <attachid>23934</attachid>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-09-30 09:04:56 -0700</bug_when>
    <thetext>Comment on attachment 23934
v1 patch

r=me

One thing we might want to be more standard about is which basic system headers are handled by either the project file prefix or the &quot;config.h&quot; include file. Those includes won&apos;t need to be added in each file that depends on them. I thought &lt;windows.h&gt; was in that category. Also I thought we needed to set some macros like NOMINMAX before including &lt;windows.h&gt; and it was a problem any time the include was in a file &quot;alone&quot; like this.

But I&apos;m not sure of either of those things, it&apos;s something we can clean up later, and this seems fine if it&apos;s helpful for building Chrome.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>93383</commentid>
    <comment_count>3</comment_count>
    <who name="Darin Fisher (:fishd, Google)">fishd</who>
    <bug_when>2008-09-30 10:07:34 -0700</bug_when>
    <thetext>I don&apos;t see NOMINMAX defined anywhere.  I do see an entry in ChangeLog-2006-12-31 about it though.  Maybe it got removed later?</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>94316</commentid>
    <comment_count>4</comment_count>
    <who name="Eric Seidel (no email)">eric</who>
    <bug_when>2008-10-06 18:17:32 -0700</bug_when>
    <thetext>I&apos;ll leave Darin Fisher this patch to commit once his commit-bit gets turned on.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95140</commentid>
    <comment_count>5</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-10-12 19:11:46 -0700</bug_when>
    <thetext>I did a quick search and found that platform/win/COMPtr.h defines NOMINMAX, but that seems like an anomaly. It looks like the NOMINMAX thing is dealt with in WebCore/config.h.

But I also see lots of includes of &lt;windows.h&gt; in various source files in WebCore and JavaScriptCore. It&apos;s a slight mystery why we&apos;re able to compile NetworkStateNotifier.h on Windows outside Chromium.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>95141</commentid>
    <comment_count>6</comment_count>
    <who name="Darin Adler">darin</who>
    <bug_when>2008-10-12 19:14:05 -0700</bug_when>
    <thetext>http://trac.webkit.org/changeset/37552</thetext>
  </long_desc>
      
          <attachment
              isobsolete="0"
              ispatch="1"
              isprivate="0"
          >
            <attachid>23934</attachid>
            <date>2008-09-30 01:41:24 -0700</date>
            <delta_ts>2008-09-30 09:04:56 -0700</delta_ts>
            <desc>v1 patch</desc>
            <filename>notifier-1.diff</filename>
            <type>text/plain</type>
            <size>878</size>
            <attacher name="Darin Fisher (:fishd, Google)">fishd</attacher>
            
              <data encoding="base64">SW5kZXg6IENoYW5nZUxvZwo9PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09Ci0tLSBDaGFuZ2VMb2cJKHJldmlzaW9uIDM3MDg5
KQorKysgQ2hhbmdlTG9nCSh3b3JraW5nIGNvcHkpCkBAIC0xLDMgKzEsMTIgQEAKKzIwMDgtMDkt
MjkgIERhcmluIEZpc2hlciAgPGRhcmluQGNocm9taXVtLm9yZz4KKworICAgICAgICBSZXZpZXdl
ZCBieSBOT0JPRFkgKE9PUFMhKS4KKworICAgICAgICBodHRwczovL2J1Z3Mud2Via2l0Lm9yZy9z
aG93X2J1Zy5jZ2k/aWQ9MjEyMjkKKworICAgICAgICAqIHBsYXRmb3JtXG5ldHdvcmtcTmV0d29y
a1N0YXRlTm90aWZpZXIuaAorOgorCiAyMDA4LTA5LTI5ICBEYXJpbiBBZGxlciAgPGRhcmluQGFw
cGxlLmNvbT4KIAogICAgICAgICBSZXZpZXdlZCBieSBTYW0gV2VpbmlnLgpJbmRleDogcGxhdGZv
cm0vbmV0d29yay9OZXR3b3JrU3RhdGVOb3RpZmllci5oCj09PT09PT09PT09PT09PT09PT09PT09
PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT0KLS0tIHBsYXRmb3Jt
L25ldHdvcmsvTmV0d29ya1N0YXRlTm90aWZpZXIuaAkocmV2aXNpb24gMzcwODkpCisrKyBwbGF0
Zm9ybS9uZXR3b3JrL05ldHdvcmtTdGF0ZU5vdGlmaWVyLmgJKHdvcmtpbmcgY29weSkKQEAgLTMy
LDYgKzMyLDggQEAKIAogdHlwZWRlZiBjb25zdCBzdHJ1Y3QgX19DRkFycmF5ICogQ0ZBcnJheVJl
ZjsKIHR5cGVkZWYgY29uc3Qgc3RydWN0IF9fU0NEeW5hbWljU3RvcmUgKiBTQ0R5bmFtaWNTdG9y
ZVJlZjsKKyNlbGlmIFBMQVRGT1JNKFdJTikKKyNpbmNsdWRlIDx3aW5kb3dzLmg+CiAjZW5kaWYK
IAogbmFtZXNwYWNlIFdlYkNvcmUgewo=
</data>
<flag name="review"
          id="10800"
          type_id="1"
          status="+"
          setter="darin"
    />
          </attachment>
      

    </bug>

</bugzilla>