Merge pull request #9782 from arades79/fix-consexpr-value-declaration-usage

Fix consexpr value declaration usage
This commit is contained in:
liamwhite 2023-02-15 17:42:38 -05:00 committed by GitHub
commit 04d2d2ef5f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
26 changed files with 54 additions and 60 deletions

View file

@ -219,7 +219,7 @@ static void LogRuntimes() {
#ifdef _MSC_VER
// It is possible that the name of the dll will change.
// vcruntime140.dll is for 2015 and onwards
constexpr char runtime_dll_name[] = "vcruntime140.dll";
static constexpr char runtime_dll_name[] = "vcruntime140.dll";
UINT sz = GetFileVersionInfoSizeA(runtime_dll_name, nullptr);
bool runtime_version_inspection_worked = false;
if (sz > 0) {