xenia-base: Use unique_ptr constructor rather than make_unique to support GCC 4.8.4
This commit is contained in:
@@ -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) {
|
||||
|
||||
Reference in New Issue
Block a user