bluetooth_low_energy_defs_win.h 1.1 KB

1234567891011121314151617181920212223242526272829303132333435
  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.
  4. #ifndef DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_
  5. #define DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_
  6. #include <windows.h>
  7. #include <cfg.h>
  8. #include <devpkey.h>
  9. #include <ntverp.h> // For VER_PRODUCTBUILD
  10. #include <setupapi.h>
  11. #if VER_PRODUCTBUILD > 9600
  12. // bthledef.h is fixed in the Windows 10 SDK and the extra pop then triggers a
  13. // warning, so we skip it when VER_PRODUCTBUILD is > 9600 (8.1 SDK)
  14. #include <bthledef.h>
  15. #else
  16. #pragma warning(push)
  17. // bthledef.h in the Windows 8.1 SDK is buggy and contains
  18. // #pragma pop
  19. // which should be
  20. // #pragma warning(pop)
  21. // So, we disable the "unknown pragma" warning, then actually pop, and then pop
  22. // our disabling of 4068.
  23. #pragma warning(disable: 4068)
  24. #include <bthledef.h>
  25. #pragma warning(pop)
  26. #pragma warning(pop)
  27. #endif
  28. #include <bluetoothapis.h>
  29. #include <bluetoothleapis.h>
  30. #endif // DEVICE_BLUETOOTH_BLUETOOTH_LOW_ENERGY_DEFS_WIN_H_