diff --git a/internal/platform/implementation/windows/bluetooth_adapter.cc b/internal/platform/implementation/windows/bluetooth_adapter.cc index a0dd9104..62d74d68 100644 --- a/internal/platform/implementation/windows/bluetooth_adapter.cc +++ b/internal/platform/implementation/windows/bluetooth_adapter.cc @@ -14,6 +14,14 @@ #include "internal/platform/implementation/windows/bluetooth_adapter.h" +// clang-format off +#include // These two headers must be defined +#include // first and in this order, otherwise + // the MSVC compiler emits a warning + // 'CTL_CODE undefined. Include winioctl.h or wdm.h' + // See https://screenshot.googleplex.com/BYB9QnoHT6eP6oc +// clang-format on + #include #include #include @@ -23,8 +31,6 @@ #include #include #include -#include // These two headers must be defined -#include // first and in this order #include diff --git a/internal/platform/implementation/windows/bluetooth_adapter.h b/internal/platform/implementation/windows/bluetooth_adapter.h index 95c47839..0fe0466b 100644 --- a/internal/platform/implementation/windows/bluetooth_adapter.h +++ b/internal/platform/implementation/windows/bluetooth_adapter.h @@ -15,8 +15,10 @@ #ifndef PLATFORM_IMPL_WINDOWS_BLUETOOTH_ADAPTER_H_ #define PLATFORM_IMPL_WINDOWS_BLUETOOTH_ADAPTER_H_ -#include +// clang-format off #include +#include +// clang-format on #include #include