Skip to content

Commit

Permalink
fix wrong patch
Browse files Browse the repository at this point in the history
  • Loading branch information
Doekin committed Oct 1, 2024
1 parent 0e5bede commit 03498cc
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions packages/n/npcap_sdk/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,11 @@ package("npcap_sdk")
add_versions("1.13", "dad1f2bf1b02b787be08ca4862f99e39a876c1f274bac4ac0cedc9bbc58f94fd")
add_versions("1.12", "24c4862723f61d28048a24e10eb31d2269b2152a5762410dd1caffc041871337")

on_load("mingw", function (package)
if package:version():eq("1.13") then
package:add("defines", "_Post_invalid_=")
on_install("windows", "mingw", function (package)
if package:is_plat("mingw") and package:version():eq("1.13") then
io.replace("Include/Packet32.h", "_Post_invalid_", "", {plain = true})
end
end)

on_install("windows", "mingw", function (package)
os.cp("Include/*", package:installdir("include"))
if package:is_arch("arm64") then
os.cp("Lib/ARM64/*", package:installdir("lib"))
Expand Down

0 comments on commit 03498cc

Please sign in to comment.