浏览代码

Add SDL_MAIN_HANDLED to libsdl test (#214)

PucklaMotzer09 4 年之前
父节点
当前提交
eba8ff37a1
共有 1 个文件被更改,包括 1 次插入2 次删除
  1. 1 2
      packages/l/libsdl/xmake.lua

+ 1 - 2
packages/l/libsdl/xmake.lua

@@ -45,6 +45,5 @@ package("libsdl")
     end)
 
     on_test(function (package)
-        local configs = package:is_plat("windows") and {ldflags = "/SUBSYSTEM:CONSOLE"}
-        assert(package:has_cfuncs("SDL_Init", {includes = "SDL2/SDL.h", configs = configs}))
+        assert(package:has_cfuncs("SDL_Init", {includes = "SDL2/SDL.h", configs = {defines = "SDL_MAIN_HANDLED"}}))
     end)