From 8326fa1b6b62938a7f11de1e46d072d50e84d67c Mon Sep 17 00:00:00 2001 From: dcvz Date: Sun, 2 Jun 2024 23:21:47 +0200 Subject: [PATCH] Fix windows compilation --- src/main/main.cpp | 3 ++- src/ui/ui_renderer.cpp | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/main/main.cpp b/src/main/main.cpp index 6863b7f..544b3b8 100644 --- a/src/main/main.cpp +++ b/src/main/main.cpp @@ -6,6 +6,7 @@ #include #include #include +#include #include "nfd.h" @@ -140,7 +141,7 @@ ultramodern::WindowHandle create_window(ultramodern::gfx_callbacks_t::gfx_data_t SDL_GetWindowWMInfo(window, &wmInfo); #if defined(_WIN32) - return zelda64::WindowHandle{ wmInfo.info.win.window, GetCurrentThreadId() }; + return ultramodern::WindowHandle{ wmInfo.info.win.window, GetCurrentThreadId() }; #elif defined(__ANDROID__) static_assert(false && "Unimplemented"); #elif defined(__linux__) diff --git a/src/ui/ui_renderer.cpp b/src/ui/ui_renderer.cpp index ad8772b..b2c79fb 100644 --- a/src/ui/ui_renderer.cpp +++ b/src/ui/ui_renderer.cpp @@ -4,7 +4,12 @@ #include #include +#ifdef _WIN32 +#include +#else #include +#endif + #include "zelda_ui.h" #include "zelda_input.h"