From f805764fea8eb0d858d685d603ef8f75966fb632 Mon Sep 17 00:00:00 2001 From: Connor McLaughlin Date: Sat, 15 Feb 2020 10:50:33 +0900 Subject: [PATCH] Common/FileSystem: More OSX fixes.. --- src/common/file_system.cpp | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/common/file_system.cpp b/src/common/file_system.cpp index c10035e48..b8873d45e 100644 --- a/src/common/file_system.cpp +++ b/src/common/file_system.cpp @@ -6,8 +6,11 @@ #include #include -#ifndef __APPLE__ +#ifdef __APPLE__ #include +#else +#include +#include #endif #if defined(WIN32) @@ -1409,7 +1412,7 @@ std::string GetProgramPath() return {}; } - std::string ret(buffer, len); + std::string ret(buffer); std::free(buffer); return ret; }