mirror of
https://github.com/holub/mame
synced 2025-06-06 21:03:47 +03:00
Minimal changes to sol2 and bgfx to compile as C++17.
These changes should be sent upstream as pull requests.
This commit is contained in:
parent
55b8ca317a
commit
f191d038ec
2
3rdparty/bgfx/src/renderer_d3d12.h
vendored
2
3rdparty/bgfx/src/renderer_d3d12.h
vendored
@ -21,7 +21,7 @@
|
||||
#if defined(__MINGW32__) // BK - temp workaround for MinGW until I nuke d3dx12 usage.
|
||||
extern "C++" {
|
||||
__extension__ template<typename Ty>
|
||||
const GUID& __mingw_uuidof();
|
||||
constexpr const GUID& __mingw_uuidof();
|
||||
|
||||
template<>
|
||||
const GUID& __mingw_uuidof<ID3D12Device>()
|
||||
|
2
3rdparty/sol2/sol/sol.hpp
vendored
2
3rdparty/sol2/sol/sol.hpp
vendored
@ -4533,7 +4533,7 @@ namespace sol {
|
||||
class bad_optional_access : public std::exception {
|
||||
public:
|
||||
bad_optional_access() = default;
|
||||
const char* what() const noexcept {
|
||||
const char* what() const noexcept override {
|
||||
return "Optional has no value";
|
||||
}
|
||||
};
|
||||
|
Loading…
Reference in New Issue
Block a user