Fixed compilation with MSVC.

This commit is contained in:
2024-09-12 15:06:03 +02:00
parent 2f77ed5ef5
commit 7b19170112
5 changed files with 21 additions and 4 deletions

View File

@@ -2,7 +2,7 @@
#include <mijin/util/scope_guard.hpp>
#include <mijin/util/variant.hpp>
#include <spdlog/spdlog.h>
#include <SDL3/SDL.h>
#include <mijin/util/winundef.hpp>
#include "./sdlpp/event.hpp"
#include "./sdlpp/gpu.hpp"

View File

@@ -11,6 +11,7 @@
#include <mijin/debug/assert.hpp>
#include <mijin/util/bitflags.hpp>
#include <SDL3/SDL.h>
#include <mijin/util/winundef.hpp>
namespace sdlpp
{
@@ -45,7 +46,7 @@ public:
operator THandle*() const noexcept { return mHandle; }
};
class SDLError : std::runtime_error
class SDLError : public std::runtime_error
{
public:
SDLError() : std::runtime_error(SDL_GetError()) {}

View File

@@ -7,6 +7,8 @@
#include <optional>
#include <variant>
#include "./common.hpp"
namespace sdlpp
{
struct Event

View File

@@ -4,8 +4,6 @@
#if !defined(SDL_GPU_TEST_PRIVATE_SDL_GPU_TEST_SDLPP_GPU_HPP_INCLUDED)
#define SDL_GPU_TEST_PRIVATE_SDL_GPU_TEST_SDLPP_GPU_HPP_INCLUDED 1
#include <SDL3/SDL_gpu.h>
#include "./common.hpp"
namespace sdlpp