Bug 72115 - [WIN] Fix build without precompiled header.
Summary: [WIN] Fix build without precompiled header.
Status: RESOLVED FIXED
Alias: None
Product: WebKit
Classification: Unclassified
Component: Platform (show other bugs)
Version: 528+ (Nightly build)
Hardware: All All
: P2 Normal
Assignee: Patrick R. Gansterer
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-11 05:07 PST by Patrick R. Gansterer
Modified: 2011-11-11 23:57 PST (History)
1 user (show)

See Also:


Attachments
Patch (3.83 KB, patch)
2011-11-11 05:10 PST, Patrick R. Gansterer
no flags Details | Formatted Diff | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Patrick R. Gansterer 2011-11-11 05:07:42 PST
[WIN] Fix build without precompiled header.
Comment 1 Patrick R. Gansterer 2011-11-11 05:10:34 PST
Created attachment 114676 [details]
Patch
Comment 2 WebKit Review Bot 2011-11-11 05:12:44 PST
Attachment 114676 [details] did not pass style-queue:

Failed to run "['Tools/Scripts/check-webkit-style', '--diff-files', u'Source/WebCore/ChangeLog', u'Source/WebCor..." exit_code: 1

Source/WebCore/platform/network/cf/ResourceError.h:37:  Alphabetical sorting problem.  [build/include_order] [4]
Total errors found: 1 in 8 files


If any of these errors are false positives, please file a bug against check-webkit-style.
Comment 3 Alexey Proskuryakov 2011-11-11 10:30:16 PST
Comment on attachment 114676 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=114676&action=review

> Source/WebCore/platform/ContextMenu.h:39
> +#include <windows.h>

Do we regularly include windows.h in headers, or do avoid doing that?
Comment 4 Patrick R. Gansterer 2011-11-11 11:31:54 PST
(In reply to comment #3)
> (From update of attachment 114676 [details])
> View in context: https://bugs.webkit.org/attachment.cgi?id=114676&action=review
> 
> > Source/WebCore/platform/ContextMenu.h:39
> > +#include <windows.h>
> 
> Do we regularly include windows.h in headers, or do avoid doing that?

AFAIK we try to minimize the usage in headers, but windows.h is already included in the following files:
Source/JavaScriptCore/wtf/Atomics.h
Source/JavaScriptCore/wtf/Assertions.h
Source/JavaScriptCore/wtf/PageAllocation.h
Source/JavaScriptCore/wtf/TCSpinLock.h
Source/JavaScriptCore/wtf/ThreadingPrimitives.h
Source/JavaScriptCore/wtf/ThreadSpecific.h
Source/WebCore/platform/FileSystem.h
Source/WebCore/platform/Pasteboard.h
Source/WebCore/platform/cf/win/CertificateCFWin.h
Source/WebCore/platform/chromium/KeyboardCodes.h
Source/WebCore/platform/graphics/FontCache.h
Source/WebCore/platform/graphics/GraphicsContext.h
Source/WebCore/platform/graphics/ca/win/LayerChangesFlusher.h
Source/WebCore/platform/graphics/chromium/FontUtilsChromiumWin.h
Source/WebCore/platform/graphics/chromium/TransparencyWin.h
Source/WebCore/platform/graphics/chromium/UniscribeHelper.h
Source/WebCore/platform/graphics/opentype/OpenTypeUtilities.h
Source/WebCore/platform/graphics/skia/FontCustomPlatformData.h
Source/WebCore/platform/graphics/skia/SkiaFontWin.h
Source/WebCore/platform/graphics/win/GDIExtras.h
Source/WebCore/platform/graphics/win/QTMovieGWorld.h
Source/WebCore/platform/graphics/win/QTTrack.h
Source/WebCore/platform/graphics/win/RefCountedGDIHandle.h
Source/WebCore/platform/network/NetworkStateNotifier.h
Source/WebCore/platform/network/ResourceHandleInternal.h
Source/WebCore/platform/network/curl/ResourceHandleManager.h
Source/WebCore/platform/text/wince/TextCodecWinCE.h
Source/WebCore/platform/win/BitmapInfo.h
Source/WebCore/platform/win/ClipboardUtilitiesWin.h
Source/WebCore/platform/win/PEImage.h
Source/WebCore/platform/win/SoftLinking.h
Source/WebCore/platform/win/Win32Handle.h
Source/WebCore/plugins/npapi.h
Source/WebCore/plugins/win/PluginMessageThrottlerWin.h
Comment 5 WebKit Review Bot 2011-11-11 23:57:50 PST
Comment on attachment 114676 [details]
Patch

Clearing flags on attachment: 114676

Committed r100072: <http://trac.webkit.org/changeset/100072>
Comment 6 WebKit Review Bot 2011-11-11 23:57:54 PST
All reviewed patches have been landed.  Closing bug.