From 5e64c297fd664605992b49ff251bdcf1eb14271d Mon Sep 17 00:00:00 2001 From: Mariotaku Lee Date: Fri, 15 Jan 2021 00:33:57 +0900 Subject: [PATCH] Fixed build for non-webos --- .github/workflows/webos-release.yml | 2 +- app/app_sdl.c | 4 ++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/webos-release.yml b/.github/workflows/webos-release.yml index 751b1b93d..cbc30cbb0 100644 --- a/.github/workflows/webos-release.yml +++ b/.github/workflows/webos-release.yml @@ -1,4 +1,4 @@ -name: Package Release for webOS +name: Release for webOS on: push: diff --git a/app/app_sdl.c b/app/app_sdl.c index f0e706614..f82f07f5a 100644 --- a/app/app_sdl.c +++ b/app/app_sdl.c @@ -45,7 +45,11 @@ static char wintitle[32]; int app_init(int argc, char *argv[]) { +#if OS_WEBOS return app_webos_init(argc, argv); +#else + return 0; +#endif } APP_WINDOW_CONTEXT app_window_create()