From 6d0a1b0ef12f0476637f554655df88fb4b4866bd Mon Sep 17 00:00:00 2001 From: ruki Date: Fri, 3 Dec 2021 09:59:40 +0800 Subject: [PATCH] Update xmake.lua (#732) --- packages/l/libsdl/xmake.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/l/libsdl/xmake.lua b/packages/l/libsdl/xmake.lua index 90a3c0336..30f759e0a 100644 --- a/packages/l/libsdl/xmake.lua +++ b/packages/l/libsdl/xmake.lua @@ -50,9 +50,9 @@ package("libsdl") on_load(function (package) if package:config("use_sdlmain") then package:add("links", "SDL2main", "SDL2") + package:add("defines", "SDL_MAIN_HANDLED") else package:add("links", "SDL2") - package:add("defines", "SDL_MAIN_HANDLED") end if package:is_plat("linux") and package:config("with_x") then package:add("deps", "libxext", {private = true})