mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-02-03 17:54:06 +00:00
clang build fix
This commit is contained in:
parent
043e6c09fe
commit
1d3f3bcce3
@ -3,7 +3,11 @@
|
||||
|
||||
#include <stdexcept>
|
||||
#include <cassert>
|
||||
#ifndef __clang__
|
||||
#include <cstdint>
|
||||
#else
|
||||
#include <tr1/cstdint>
|
||||
#endif
|
||||
|
||||
namespace {
|
||||
|
||||
|
@ -30,7 +30,7 @@ namespace Translation
|
||||
{
|
||||
std::string path = dataFileCollections.getCollection (extension).getPath (fileName).string();
|
||||
|
||||
std::ifstream stream (path);
|
||||
std::ifstream stream (path.c_str());
|
||||
|
||||
if (!stream.is_open())
|
||||
throw std::runtime_error ("failed to open translation file: " + fileName);
|
||||
|
Loading…
x
Reference in New Issue
Block a user