瀏覽代碼

fix microsoft-detours defines (#2971)

Jai 1 年之前
父節點
當前提交
22223c3e86
共有 1 個文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/m/microsoft-detours/xmake.lua

+ 1 - 2
packages/m/microsoft-detours/xmake.lua

@@ -15,12 +15,11 @@ package("microsoft-detours")
                 set_kind("$(kind)")
                 add_files("src/*.cpp|uimports.cpp")
                 add_headerfiles("src/*.h")
-                add_defines("WIN32_LEAN_AND_MEAN", "_WIN32_WINNT=0x501")
+                add_defines("WIN32_LEAN_AND_MEAN")
                 if is_mode("debug") then
                     add_defines("DETOUR_DEBUG=1")
                 end
         ]])
-        package:add("defines", "WIN32_LEAN_AND_MEAN", "_WIN32_WINNT=0x501")
         if package:config("shared") then
             configs.kind = "shared"
         end