diff --git a/packages/r/raw_pdb/xmake.lua b/packages/r/raw_pdb/xmake.lua index beb0e85f02a..221f9fe70c5 100644 --- a/packages/r/raw_pdb/xmake.lua +++ b/packages/r/raw_pdb/xmake.lua @@ -41,5 +41,9 @@ package("raw_pdb") end) on_test(function (package) - assert(package:has_cxxfuncs("PDB::ValidateFile(0)", {includes = "PDB.h"})) + if package:version():ge("2024.08.27") then + assert(package:has_cxxfuncs("PDB::ValidateFile(0, 0)", {includes = "raw_pdb/PDB.h"})) + else + assert(package:has_cxxfuncs("PDB::ValidateFile(0)", {includes = "PDB.h"})) + end end)