Skip to content

Commit

Permalink
fix(learn): 支持 mac
Browse files Browse the repository at this point in the history
Signed-off-by: YdrMaster <[email protected]>
  • Loading branch information
YdrMaster committed Jul 16, 2024
1 parent a8949ec commit 550fdce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion learn/test.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ Log &Log::operator<<(unsigned int n) {
} else if (std::holds_alternative<Null>(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"
Expand Down

0 comments on commit 550fdce

Please sign in to comment.