Skip to content

Commit

Permalink
networklistmanager: allow building with LLVM-MinGW
Browse files Browse the repository at this point in the history
At mstorsjo/llvm-mingw#307 we can see that
LLVM-MinGW is able to build qtbase with winrt headers and cxx20 feature.

Change-Id: Ib4b5df7481f684ebdb26cbc4246bdf86ff3dd648
Reviewed-by: Cristian Adam <[email protected]>
  • Loading branch information
cristianadam committed Dec 3, 2022
1 parent be4352c commit 6da057d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/network/configure.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -166,6 +166,7 @@ qt_config_compile_test(networklistmanager
LABEL "Network List Manager"
CODE
"#include <netlistmgr.h>
#include <ocidl.h>
#include <wrl/client.h>
int main(void)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -172,7 +172,7 @@ bool QNetworkListManagerEvents::checkBehindCaptivePortal()
VariantInit(&variant);
const auto scopedVariantClear = qScopeGuard([&variant]() { VariantClear(&variant); });

const wchar_t *versions[] = { NA_InternetConnectivityV6, NA_InternetConnectivityV4 };
const wchar_t *versions[] = { L"NA_InternetConnectivityV6", L"NA_InternetConnectivityV4" };
for (const auto version : versions) {
hr = propertyBag->Read(version, &variant, nullptr);
if (SUCCEEDED(hr)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@
#include <QtCore/qmutex.h>

#include <objbase.h>
#include <ocidl.h>
#include <netlistmgr.h>
#include <wrl/client.h>
#include <wrl/wrappers/corewrappers.h>
Expand Down

0 comments on commit 6da057d

Please sign in to comment.