Skip to content

Commit

Permalink
Gui Builder should include 'SDL3/SDL_main.h' instead of 'SDL_main.h' …
Browse files Browse the repository at this point in the history
…when using SDL3 (fixes #250)
  • Loading branch information
texus committed Jan 16, 2025
1 parent ef4fe4d commit ff8d8cd
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion gui-builder/src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,11 @@
#if !TGUI_HAS_BACKEND_SFML_GRAPHICS && !TGUI_HAS_BACKEND_SFML_OPENGL3 \
&& (TGUI_HAS_BACKEND_SDL_RENDERER || TGUI_HAS_BACKEND_SDL_OPENGL3 || TGUI_HAS_BACKEND_SDL_GLES2 || TGUI_HAS_BACKEND_SDL_TTF_OPENGL3 || TGUI_HAS_BACKEND_SDL_TTF_GLES2)
#include <TGUI/extlibs/IncludeSDL.hpp> // To avoid compiler warnings with including SDL_main.h
#include <SDL_main.h>
#if SDL_MAJOR_VERSION >= 3
#include <SDL3/SDL_main.h>
#else
#include <SDL_main.h>
#endif
#endif

#include "GuiBuilder.hpp"
Expand Down

0 comments on commit ff8d8cd

Please sign in to comment.