xenia-base: Use unique_ptr constructor rather than make_unique to support GCC 4.8.4

This commit is contained in:
Dr. Chat
2017-05-12 10:17:56 -05:00
parent 56d727a024
commit af493ffbc7
3 changed files with 7 additions and 4 deletions

View File

@@ -50,7 +50,8 @@ std::unique_ptr<MappedMemory> MappedMemory::Open(const std::wstring& path,
break;
}
auto mm = std::make_unique<PosixMappedMemory>(path, mode);
auto mm =
std::unique_ptr<PosixMappedMemory>(new PosixMappedMemory(path, mode));
mm->file_handle = fopen(xe::to_string(path).c_str(), mode_str);
if (!mm->file_handle) {