From 550fdce62ffa3355b6e22c153d38b5902a059848 Mon Sep 17 00:00:00 2001 From: YdrMaster Date: Tue, 16 Jul 2024 15:33:35 +0800 Subject: [PATCH] =?UTF-8?q?fix(learn):=20=E6=94=AF=E6=8C=81=20mac?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: YdrMaster --- learn/test.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/learn/test.cpp b/learn/test.cpp index f2e1e6a3..e877c333 100644 --- a/learn/test.cpp +++ b/learn/test.cpp @@ -49,7 +49,7 @@ Log &Log::operator<<(unsigned int n) { } else if (std::holds_alternative(this->dst)) { #if defined(_WIN32) constexpr auto null = "nul"; -#elif defined(__linux__) || defined(__unix__) +#elif defined(__linux__) || defined(__unix__) || defined(__MACOSX__) || defined(__APPLE__) constexpr auto null = "/dev/null"; #else #error "Unsupported platform"