gh-99191: Use correct check for MSVC C++ version support in _wmimodule.cpp (GH-100381)

This commit is contained in:
C.A.M. Gerlach 2023-01-09 11:48:24 -06:00 committed by GitHub
parent 36f2329367
commit f08209874e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 5 additions and 3 deletions

View File

@ -0,0 +1,2 @@
Use ``_MSVC_LANG >= 202002L`` instead of less-precise ``_MSC_VER >=1929``
to more accurately test for C++20 support in :file:`PC/_wmimodule.cpp`.

View File

@ -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