RESOLVED FIXED 21229
NetworkStateNotifier.h lacks a #include <windows.h> for PLATFORM(WIN)
https://bugs.webkit.org/show_bug.cgi?id=21229
Summary NetworkStateNotifier.h lacks a #include <windows.h> for PLATFORM(WIN)
Darin Fisher (:fishd, Google)
Reported 2008-09-29 21:43:31 PDT
NetworkStateNotifier.h lacks a #include <windows.h> This causes build problems if you do not force include windows.h, which seems like an undesirable requirement (to me at least).
Attachments
v1 patch (878 bytes, patch)
2008-09-30 01:41 PDT, Darin Fisher (:fishd, Google)
darin: review+
Darin Fisher (:fishd, Google)
Comment 1 2008-09-30 01:41:24 PDT
Created attachment 23934 [details] v1 patch Simple fix.
Darin Adler
Comment 2 2008-09-30 09:04:56 PDT
Comment on attachment 23934 [details] 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 "config.h" include file. Those includes won't need to be added in each file that depends on them. I thought <windows.h> was in that category. Also I thought we needed to set some macros like NOMINMAX before including <windows.h> and it was a problem any time the include was in a file "alone" like this. But I'm not sure of either of those things, it's something we can clean up later, and this seems fine if it's helpful for building Chrome.
Darin Fisher (:fishd, Google)
Comment 3 2008-09-30 10:07:34 PDT
I don't see NOMINMAX defined anywhere. I do see an entry in ChangeLog-2006-12-31 about it though. Maybe it got removed later?
Eric Seidel (no email)
Comment 4 2008-10-06 18:17:32 PDT
I'll leave Darin Fisher this patch to commit once his commit-bit gets turned on.
Darin Adler
Comment 5 2008-10-12 19:11:46 PDT
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 <windows.h> in various source files in WebCore and JavaScriptCore. It's a slight mystery why we're able to compile NetworkStateNotifier.h on Windows outside Chromium.
Darin Adler
Comment 6 2008-10-12 19:14:05 PDT
Note You need to log in before you can comment on or make changes to this bug.