Skip to content

Commit

Permalink
fix compile error
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Jul 9, 2023
1 parent 62f4b61 commit 5347e53
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions examples_for_PC/CMake_SDL/LGFX_SDL.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4,20 +4,14 @@
void setup(void);
void loop(void);

#if __has_include(<windows.h>)
#include <windows.h>
#include <tchar.h>
int WINAPI _tWinMain(HINSTANCE hInstance, HINSTANCE hPrevInstance, LPTSTR lpCmdLine, int nCmdShow)
#else
int main(int, char**)
#endif
{
setup();
for (;;)
{
lgfx::Panel_sdl::sdl_event_handler();
loop();
}
return 1;
return 0;
}
#endif

0 comments on commit 5347e53

Please sign in to comment.