Common/FileSystem: Don't include malloc.h on macOS

This commit is contained in:
Connor McLaughlin 2020-02-15 10:12:55 +09:00
parent 33f3ab4d86
commit 4681f9d744

View file

@ -5,8 +5,10 @@
#include "string_util.h"
#include <algorithm>
#include <cstring>
#ifndef __APPLE__
#include <malloc.h>
Log_SetChannel(FileSystem);
#endif
#if defined(WIN32)
#include <shlobj.h>
@ -18,6 +20,8 @@ Log_SetChannel(FileSystem);
#include <unistd.h>
#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
} // namespace FileSystem