Skip to content

Commit 550fdce

Browse files
committed
fix(learn): 支持 mac
Signed-off-by: YdrMaster <[email protected]>
1 parent a8949ec commit 550fdce

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

learn/test.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ Log &Log::operator<<(unsigned int n) {
4949
} else if (std::holds_alternative<Null>(this->dst)) {
5050
#if defined(_WIN32)
5151
constexpr auto null = "nul";
52-
#elif defined(__linux__) || defined(__unix__)
52+
#elif defined(__linux__) || defined(__unix__) || defined(__MACOSX__) || defined(__APPLE__)
5353
constexpr auto null = "/dev/null";
5454
#else
5555
#error "Unsupported platform"

0 commit comments

Comments
 (0)