From 5347e53c6d2a153ea312843c9fcffc83ac7c9e2a Mon Sep 17 00:00:00 2001 From: lovyan03 <42724151+lovyan03@users.noreply.github.com> Date: Sun, 9 Jul 2023 21:22:59 +0900 Subject: [PATCH] fix compile error --- examples_for_PC/CMake_SDL/LGFX_SDL.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/examples_for_PC/CMake_SDL/LGFX_SDL.cpp b/examples_for_PC/CMake_SDL/LGFX_SDL.cpp index a9ac27f7..9dcc0dc2 100644 --- a/examples_for_PC/CMake_SDL/LGFX_SDL.cpp +++ b/examples_for_PC/CMake_SDL/LGFX_SDL.cpp @@ -4,13 +4,7 @@ void setup(void); void loop(void); -#if __has_include() -#include -#include -int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow) -#else int main(int, char**) -#endif { setup(); for (;;) @@ -18,6 +12,6 @@ int main(int, char**) lgfx::Panel_sdl::sdl_event_handler(); loop(); } - return 1; + return 0; } #endif