summaryrefslogtreecommitdiffstats
path: root/device/bluetooth/bluetooth_low_energy_defs_win.h
blob: bb4e468f8593bdee174b69e4a57832d1d4cd5d3a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
// Copyright 2014 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_
#define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_

#include <windows.h>
#include <cfg.h>
#include <devpkey.h>
#include <ntverp.h>  // For VER_PRODUCTBUILD
#include <setupapi.h>

#if VER_PRODUCTBUILD > 9600
// bthledef.h is fixed in the Windows 10 SDK and the extra pop then triggers a
// warning, so we skip it when VER_PRODUCTBUILD is > 9600 (8.1 SDK)
#include <bthledef.h>
#else
#pragma warning(push)
// bthledef.h in the Windows 8.1 SDK is buggy and contains
//   #pragma pop
// which should be
//   #pragma warning(pop)
// So, we disable the "unknown pragma" warning, then actually pop, and then pop
// our disabling of 4068.
#pragma warning(disable: 4068)
#include <bthledef.h>
#pragma warning(pop)
#pragma warning(pop)
#endif

#include <bluetoothapis.h>
#include <bluetoothleapis.h>

#endif  // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_