diff --git a/src/core/core_timing.cpp b/src/core/core_timing.cpp index b216dc2094..5d2a3485b7 100644 --- a/src/core/core_timing.cpp +++ b/src/core/core_timing.cpp @@ -25,6 +25,7 @@ namespace Core::Timing { constexpr s64 MAX_SLICE_LENGTH = 10000; +#undef CreateEvent std::shared_ptr CreateEvent(std::string name, TimedCallback&& callback) { return std::make_shared(std::move(callback), std::move(name)); } diff --git a/src/core/file_sys/vfs/vfs.cpp b/src/core/file_sys/vfs/vfs.cpp index b85b843e3e..15efb34efb 100644 --- a/src/core/file_sys/vfs/vfs.cpp +++ b/src/core/file_sys/vfs/vfs.cpp @@ -10,6 +10,12 @@ #include "common/fs/path_util.h" #include "core/file_sys/vfs/vfs.h" +#undef CreateFile +#undef DeleteFile +#undef CreateDirectory +#undef CopyFile +#undef MoveFile + namespace FileSys { VfsFilesystem::VfsFilesystem(VirtualDir root_) : root(std::move(root_)) {} diff --git a/src/core/file_sys/vfs/vfs_vector.h b/src/core/file_sys/vfs/vfs_vector.h index 86beed931c..7676e9f3c4 100644 --- a/src/core/file_sys/vfs/vfs_vector.h +++ b/src/core/file_sys/vfs/vfs_vector.h @@ -99,6 +99,10 @@ private: std::string name; }; +#undef CreateFile +#undef DeleteFile +#undef CreateDirectory + // An implementation of VfsDirectory that maintains two vectors for subdirectories and files. // Vector data is supplied upon construction. class VectorVfsDirectory : public VfsDirectory { diff --git a/src/core/hle/service/bcat/news/overwrite_event_holder.cpp b/src/core/hle/service/bcat/news/overwrite_event_holder.cpp index 1712971e4d..39c75a7a65 100644 --- a/src/core/hle/service/bcat/news/overwrite_event_holder.cpp +++ b/src/core/hle/service/bcat/news/overwrite_event_holder.cpp @@ -6,6 +6,8 @@ namespace Service::News { +#undef CreateEvent + IOverwriteEventHolder::IOverwriteEventHolder(Core::System& system_) : ServiceFramework{system_, "IOverwriteEventHolder"}, service_context{system_, "IOverwriteEventHolder"} { diff --git a/src/core/hle/service/caps/caps_manager.cpp b/src/core/hle/service/caps/caps_manager.cpp index af0b9b16ad..80290c312f 100644 --- a/src/core/hle/service/caps/caps_manager.cpp +++ b/src/core/hle/service/caps/caps_manager.cpp @@ -18,6 +18,8 @@ #include "core/hle/service/service.h" #include "core/hle/service/sm/sm.h" +#undef GetCurrentTime + namespace Service::Capture { AlbumManager::AlbumManager(Core::System& system_) : system{system_} {} diff --git a/src/core/hle/service/fatal/fatal.cpp b/src/core/hle/service/fatal/fatal.cpp index 5b281a725a..88ee9d7e82 100644 --- a/src/core/hle/service/fatal/fatal.cpp +++ b/src/core/hle/service/fatal/fatal.cpp @@ -19,6 +19,8 @@ #include "core/hle/service/server_manager.h" #include "core/reporter.h" +#undef far + namespace Service::Fatal { Module::Interface::Interface(std::shared_ptr module_, Core::System& system_, diff --git a/src/core/hle/service/filesystem/filesystem.cpp b/src/core/hle/service/filesystem/filesystem.cpp index c192fea454..7a78cc2dfa 100644 --- a/src/core/hle/service/filesystem/filesystem.cpp +++ b/src/core/hle/service/filesystem/filesystem.cpp @@ -32,6 +32,10 @@ #include "core/hle/service/server_manager.h" #include "core/loader/loader.h" +#undef CreateFile +#undef DeleteFile +#undef CreateDirectory + namespace Service::FileSystem { static FileSys::VirtualDir GetDirectoryRelativeWrapped(FileSys::VirtualDir base, diff --git a/src/core/hle/service/psc/time/clocks/system_clock_core.h b/src/core/hle/service/psc/time/clocks/system_clock_core.h index 0b928432fb..1283b16623 100644 --- a/src/core/hle/service/psc/time/clocks/system_clock_core.h +++ b/src/core/hle/service/psc/time/clocks/system_clock_core.h @@ -10,6 +10,8 @@ namespace Service::PSC::Time { class ContextWriter; +#undef GetCurrentTime + class SystemClockCore { public: explicit SystemClockCore(SteadyClockCore& steady_clock) : m_steady_clock{steady_clock} {} diff --git a/src/core/hle/service/psc/time/system_clock.h b/src/core/hle/service/psc/time/system_clock.h index 3c11fb2f81..240c529511 100644 --- a/src/core/hle/service/psc/time/system_clock.h +++ b/src/core/hle/service/psc/time/system_clock.h @@ -16,6 +16,8 @@ class System; namespace Service::PSC::Time { +#undef GetCurrentTime + class SystemClock final : public ServiceFramework { public: explicit SystemClock(Core::System& system, SystemClockCore& system_clock_core, diff --git a/src/core/memory/cheat_engine.cpp b/src/core/memory/cheat_engine.cpp index dcfd23644f..6e95fbae94 100644 --- a/src/core/memory/cheat_engine.cpp +++ b/src/core/memory/cheat_engine.cpp @@ -21,6 +21,8 @@ #include "hid_core/resource_manager.h" #include "hid_core/resources/npad/npad.h" +#undef CreateEvent + namespace Core::Memory { namespace { constexpr auto CHEAT_ENGINE_NS = std::chrono::nanoseconds{1000000000 / 12}; diff --git a/src/core/reporter.cpp b/src/core/reporter.cpp index 1723636811..bce4b3910e 100644 --- a/src/core/reporter.cpp +++ b/src/core/reporter.cpp @@ -27,6 +27,8 @@ #include "core/memory.h" #include "core/reporter.h" +#undef far + namespace { std::filesystem::path GetPath(std::string_view type, u64 title_id, std::string_view timestamp) { diff --git a/src/core/tools/freezer.cpp b/src/core/tools/freezer.cpp index 73a86b3c8c..5b727128e2 100644 --- a/src/core/tools/freezer.cpp +++ b/src/core/tools/freezer.cpp @@ -52,6 +52,8 @@ void MemoryWriteWidth(Core::Memory::Memory& memory, u32 width, VAddr addr, u64 v } // Anonymous namespace +#undef CreateEvent + Freezer::Freezer(Core::Timing::CoreTiming& core_timing_, Core::Memory::Memory& memory_) : core_timing{core_timing_}, memory{memory_} { event = Core::Timing::CreateEvent("MemoryFreezer::FrameCallback",