From 4681f9d744aaf5fdb3dffb100e1f8dd739f7d17f Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 15 Feb 2020 10:12:55 +0900 Subject: [PATCH] Common/FileSystem: Don't include malloc.h on macOS --- src/common/file_system.cpp | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/common/file_system.cpp b/src/common/file_system.cpp index 0318c7231..1f0507807 100644 --- a/src/common/file_system.cpp +++ b/src/common/file_system.cpp @@ -5,8 +5,10 @@ #include "string_util.h" #include #include + +#ifndef __APPLE__ #include -Log_SetChannel(FileSystem); +#endif #if defined(WIN32) #include @@ -18,6 +20,8 @@ Log_SetChannel(FileSystem); #include #endif +Log_SetChannel(FileSystem); + namespace FileSystem { ChangeNotifier::ChangeNotifier(const String& directoryPath, bool recursiveWatch) @@ -1441,4 +1445,4 @@ bool SetWorkingDirectory(const char* path) #endif -} // namespace FileSystem \ No newline at end of file +} // namespace FileSystem