diff --git a/appveyor.yml b/appveyor.yml index a956c55..0e1fdca 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -14,6 +14,8 @@ test_script: environment: matrix: + - ruby_version: "31-x64" + - ruby_version: "31" - ruby_version: "30-x64" - ruby_version: "30" - ruby_version: "27-x64" diff --git a/lib/windows/api.rb b/lib/windows/api.rb index 4fcb868..70295b0 100644 --- a/lib/windows/api.rb +++ b/lib/windows/api.rb @@ -8,7 +8,9 @@ module Windows # With Microsoft Visual C++ 8 and later users should use the associated # DLL instead of msvcrt directly, if possible. - if CONFIG['host_os'].split('_')[1] + if RUBY_PLATFORM.split('-')[-1] == "ucrt" + MSVCRT_DLL = 'ucrtbase' + elsif CONFIG['host_os'].split('_')[1] if CONFIG['host_os'].split('_')[1].to_i >= 80 MSVCRT_DLL = 'msvcr' + CONFIG['host_os'].split('_')[1] else