Fix windows compilation

This commit is contained in:
dcvz 2024-06-02 23:21:47 +02:00
parent 17e64813b4
commit 8326fa1b6b
2 changed files with 7 additions and 1 deletions

View File

@ -6,6 +6,7 @@
#include <filesystem>
#include <numeric>
#include <stdexcept>
#include <cinttypes>
#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__)

View File

@ -4,7 +4,12 @@
#include <fstream>
#include <filesystem>
#ifdef _WIN32
#include <SDL_video.h>
#else
#include <SDL2/SDL_video.h>
#endif
#include "zelda_ui.h"
#include "zelda_input.h"