Commit aba78123 authored by Zijie He's avatar Zijie He Committed by Commit Bot

Only include "base/win/windows_version.h on Windows build

In change https://codereview.chromium.org/2941623003, base/win/windows_version.h
was included in remoting/host/host_attributes.cc for all platforms. This issue
breaks gn analyze. Refer to the bug for more details.

Bug: 661774
Change-Id: I940bf9a87870fad76d14f6f7bea2c439cde081dc
Reviewed-on: https://chromium-review.googlesource.com/573560Reviewed-by: default avatarWei-Yin Chen (陳威尹) <wychen@chromium.org>
Commit-Queue: Zijie He <zijiehe@chromium.org>
Cr-Commit-Position: refs/heads/master@{#487170}
parent 446bbb3c
......@@ -4,10 +4,6 @@
#include "remoting/host/host_attributes.h"
#if defined(OS_WIN)
#include <D3DCommon.h>
#endif
#include <type_traits>
#include "base/atomicops.h"
......@@ -15,10 +11,12 @@
#include "base/macros.h"
#include "base/strings/string_piece.h"
#include "base/strings/string_util.h"
#include "base/win/windows_version.h"
#include "build/build_config.h"
#if defined(OS_WIN)
#include <D3DCommon.h>
#include "base/win/windows_version.h"
#include "third_party/webrtc/modules/desktop_capture/win/dxgi_duplicator_controller.h"
#include "third_party/webrtc/modules/desktop_capture/win/screen_capturer_win_directx.h"
#endif
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment