QUIC - cleanup changes to sync chromium tree with internal source.
[chromium-blink-merge.git] / device / bluetooth / bluetooth_low_energy_defs_win.h
blobbb4e468f8593bdee174b69e4a57832d1d4cd5d3a
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_
6 #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_
8 #include <windows.h>
9 #include <cfg.h>
10 #include <devpkey.h>
11 #include <ntverp.h> // For VER_PRODUCTBUILD
12 #include <setupapi.h>
14 #if VER_PRODUCTBUILD > 9600
15 // bthledef.h is fixed in the Windows 10 SDK and the extra pop then triggers a
16 // warning, so we skip it when VER_PRODUCTBUILD is > 9600 (8.1 SDK)
17 #include <bthledef.h>
18 #else
19 #pragma warning(push)
20 // bthledef.h in the Windows 8.1 SDK is buggy and contains
21 // #pragma pop
22 // which should be
23 // #pragma warning(pop)
24 // So, we disable the "unknown pragma" warning, then actually pop, and then pop
25 // our disabling of 4068.
26 #pragma warning(disable: 4068)
27 #include <bthledef.h>
28 #pragma warning(pop)
29 #pragma warning(pop)
30 #endif
32 #include <bluetoothapis.h>
33 #include <bluetoothleapis.h>
35 #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_