Skip to content

Commit

Permalink
Enforce LM_EXPORT to be used for DLL/LIB
Browse files Browse the repository at this point in the history
  • Loading branch information
luadebug committed Oct 8, 2024
1 parent a33558c commit ac3fe09
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/l/libmem/port/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,6 @@ target("libmem")
add_files("internal/winutils/*.c")
add_files("src/win/*.c")
end
if is_plat("windows") and is_kind("static") then
if is_plat("windows") then
add_defines("LM_EXPORT")
end
2 changes: 1 addition & 1 deletion packages/l/libmem/xmake.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ package("libmem")
end

on_load(function (package)
if package:is_plat("windows") and package:config("static") then
if package:is_plat("windows") then
package:add("defines", "LM_EXPORT")
end
end)
Expand Down

0 comments on commit ac3fe09

Please sign in to comment.