summaryrefslogtreecommitdiffstats
path: root/PC
diff options
context:
space:
mode:
authorC.A.M. Gerlach <CAM.Gerlach@Gerlach.CAM>2023-01-09 17:48:24 (GMT)
committerGitHub <noreply@github.com>2023-01-09 17:48:24 (GMT)
commitf08209874e58d0adbb08bd1dba4f58ba63f571c5 (patch)
tree1c9fde558f0677e259031f1900e6486e8cbba374 /PC
parent36f2329367f3608d15562f1c9e89c50a1bd07b0b (diff)
downloadcpython-f08209874e58d0adbb08bd1dba4f58ba63f571c5.zip
cpython-f08209874e58d0adbb08bd1dba4f58ba63f571c5.tar.gz
cpython-f08209874e58d0adbb08bd1dba4f58ba63f571c5.tar.bz2
gh-99191: Use correct check for MSVC C++ version support in _wmimodule.cpp (GH-100381)
Diffstat (limited to 'PC')
-rw-r--r--PC/_wmimodule.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/PC/_wmimodule.cpp b/PC/_wmimodule.cpp
index de22049..310aa86 100644
--- a/PC/_wmimodule.cpp
+++ b/PC/_wmimodule.cpp
@@ -17,7 +17,7 @@
#include <Python.h>
-#if _MSC_VER >= 1929
+#if _MSVC_LANG >= 202002L
// We can use clinic directly when the C++ compiler supports C++20
#include "clinic/_wmimodule.cpp.h"
#else
@@ -96,9 +96,9 @@ _query_thread(LPVOID param)
}
if (SUCCEEDED(hr)) {
hr = services->ExecQuery(
- bstr_t("WQL"),
+ bstr_t("WQL"),
bstrQuery,
- WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
+ WBEM_FLAG_FORWARD_ONLY | WBEM_FLAG_RETURN_IMMEDIATELY,
NULL,
&enumerator
);