From 182c075db09ca641cc8bcb61b53c86c20f4c1b7b Mon Sep 17 00:00:00 2001 From: Martin Ridgers Date: Thu, 16 Dec 2021 13:38:19 +0100 Subject: CloneFile()'s unimplemented on Mac but shouldn't be a compile error --- zencore/filesystem.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'zencore/filesystem.cpp') diff --git a/zencore/filesystem.cpp b/zencore/filesystem.cpp index 878d20c42..95b92277b 100644 --- a/zencore/filesystem.cpp +++ b/zencore/filesystem.cpp @@ -452,7 +452,8 @@ CloneFile(std::filesystem::path FromPath, std::filesystem::path ToPath) return false; #elif ZEN_PLATFORM_MAC /* clonefile() syscall if APFS */ -# error not implemented + ZEN_UNUSED(FromPath, ToPath); + ZEN_ERROR("CloneFile() is not implemented on this platform"); return false; #endif // ZEN_PLATFORM_WINDOWS } -- cgit v1.2.3