Explorar o código

Add SDL_MAIN_HANDLED to libsdl test (#214)

PucklaMotzer09 %!s(int64=4) %!d(string=hai) anos
pai
achega
eba8ff37a1
Modificáronse 1 ficheiros con 1 adicións e 2 borrados
  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)