Fixed compilation with MSVC.
This commit is contained in:
@@ -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"
|
||||
|
||||
@@ -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()) {}
|
||||
|
||||
@@ -7,6 +7,8 @@
|
||||
#include <optional>
|
||||
#include <variant>
|
||||
|
||||
#include "./common.hpp"
|
||||
|
||||
namespace sdlpp
|
||||
{
|
||||
struct Event
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user