Add SDL_MAIN_HANDLED to libsdl test (#214)

pull/217/head
PucklaMotzer09 4 years ago committed by GitHub
parent b775783552
commit eba8ff37a1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 3
      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)

Loading…
Cancel
Save