Skip to content

Commit

Permalink
Fixed SDL not to work when building Arduino for PC ( #501 )
Browse files Browse the repository at this point in the history
  • Loading branch information
lovyan03 committed Jan 2, 2024
1 parent 603d53d commit a055a87
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/lgfx/v1/platforms/sdl/Panel_sdl.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Original Source:
Porting for SDL:
[imliubo](https://github.com/imliubo)
/----------------------------------------------------------------------------*/
#if !defined (ARDUINO)

#include "Panel_sdl.hpp"

#if defined ( SDL_h_ )
Expand Down Expand Up @@ -467,3 +469,4 @@ namespace lgfx
}

#endif
#endif
3 changes: 3 additions & 0 deletions src/lgfx/v1/platforms/sdl/common.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ Original Source:
Porting for SDL:
[imliubo](https://github.com/imliubo)
/----------------------------------------------------------------------------*/
#if !defined (ARDUINO)

#include "common.hpp"

#if defined ( SDL_h_ )
Expand Down Expand Up @@ -114,3 +116,4 @@ namespace lgfx
}

#endif
#endif

0 comments on commit a055a87

Please sign in to comment.