From 070efd99e007097f323f066cf71052d52a705ee4 Mon Sep 17 00:00:00 2001 From: Ryan Carsten Schmidt Date: Wed, 17 Jan 2024 16:26:20 -0600 Subject: [PATCH] Include 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. --- Analyser/Static/StaticAnalyser.cpp | 3 ++- Storage/Disk/DiskImage/Formats/2MG.hpp | 3 ++- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/Analyser/Static/StaticAnalyser.cpp b/Analyser/Static/StaticAnalyser.cpp index 6dfd90998..d57749c1e 100644 --- a/Analyser/Static/StaticAnalyser.cpp +++ b/Analyser/Static/StaticAnalyser.cpp @@ -9,6 +9,7 @@ #include "StaticAnalyser.hpp" #include +#include #include #include #include @@ -179,7 +180,7 @@ static Media GetMediaAndPlatforms(const std::string &file_name, TargetPlatform:: std::visit([&](auto &&arg) { using Type = typename std::decay::type; - if constexpr (std::is_same::value) { + if constexpr (std::is_same::value) { // It's valid for no media to be returned. } else if constexpr (std::is_same::value) { accumulator.insert(TargetPlatform::DiskII, std::shared_ptr(arg)); diff --git a/Storage/Disk/DiskImage/Formats/2MG.hpp b/Storage/Disk/DiskImage/Formats/2MG.hpp index 46a78ec3d..318d4ff70 100644 --- a/Storage/Disk/DiskImage/Formats/2MG.hpp +++ b/Storage/Disk/DiskImage/Formats/2MG.hpp @@ -13,6 +13,7 @@ #include "../../../FileHolder.hpp" +#include #include namespace Storage::Disk { @@ -28,7 +29,7 @@ namespace Storage::Disk { class Disk2MG { public: - using DiskOrMassStorageDevice = std::variant; + using DiskOrMassStorageDevice = std::variant; static DiskOrMassStorageDevice open(const std::string &file_name); };