1
0
mirror of https://github.com/TomHarte/CLK.git synced 2026-04-25 11:17:26 +00:00

Include <cstddef> and use std::nullptr_t not nullptr_t

Fixes "error: use of undeclared identifier 'nullptr_t'; did you mean
'nullptr'?" when compiling with Xcode 12.4.
This commit is contained in:
Ryan Carsten Schmidt
2024-01-17 16:26:20 -06:00
parent 789c4a080f
commit 070efd99e0
2 changed files with 4 additions and 2 deletions
+2 -1
View File
@@ -13,6 +13,7 @@
#include "../../../FileHolder.hpp"
#include <cstddef>
#include <variant>
namespace Storage::Disk {
@@ -28,7 +29,7 @@ namespace Storage::Disk {
class Disk2MG {
public:
using DiskOrMassStorageDevice = std::variant<nullptr_t, DiskImageHolderBase *, Storage::MassStorage::MassStorageDevice *>;
using DiskOrMassStorageDevice = std::variant<std::nullptr_t, DiskImageHolderBase *, Storage::MassStorage::MassStorageDevice *>;
static DiskOrMassStorageDevice open(const std::string &file_name);
};