1
0
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:
Nikolay Kasyanov 2013-01-06 19:19:12 +04:00
parent 043e6c09fe
commit 1d3f3bcce3
2 changed files with 5 additions and 1 deletions

View File

@ -3,7 +3,11 @@
#include <stdexcept>
#include <cassert>
#ifndef __clang__
#include <cstdint>
#else
#include <tr1/cstdint>
#endif
namespace {

View File

@ -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);