From 4a91edd28984dc41ef766936427a5f58d1aa398c Mon Sep 17 00:00:00 2001 From: Rekai Musuka Date: Sun, 1 Jan 2023 12:54:18 -0600 Subject: [PATCH] fix: vcpkg stores SDL.h under SDL2 folder macOS and Linux seem to not, so in order to get CI working again I should make use of the preprocessor. FIXME: I think this makes vcpkg a **hard** requirement which perhaps isn't ideal if I want ZBA to be as easy to build as possible. I should try ensuring that building w/out vcpkg works as well --- libs/imgui/backends/imgui_impl_sdl.cpp | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/libs/imgui/backends/imgui_impl_sdl.cpp b/libs/imgui/backends/imgui_impl_sdl.cpp index fc26bf3..d63c6e4 100644 --- a/libs/imgui/backends/imgui_impl_sdl.cpp +++ b/libs/imgui/backends/imgui_impl_sdl.cpp @@ -67,8 +67,14 @@ #include "imgui_impl_sdl.h" // SDL -#include -#include +#if defined(__WIN32__) + #include + #include +#else + #include + #include +#endif + #if defined(__APPLE__) #include #endif