Core/Directory: Fix crash at the end of program with MinGW

Former-commit-id: 822d053793e0efc4e3dbb69fbfca556667c303f6
This commit is contained in:
Lynix
2015-12-07 22:49:40 +01:00
parent 93fae53ea5
commit ee2257810c

View File

@@ -8,6 +8,7 @@
#include <Nazara/Core/File.hpp> #include <Nazara/Core/File.hpp>
#include <cstddef> #include <cstddef>
#include <cstring> #include <cstring>
#include <string>
#if defined(NAZARA_PLATFORM_WINDOWS) #if defined(NAZARA_PLATFORM_WINDOWS)
#include <Nazara/Core/Win32/DirectoryImpl.hpp> #include <Nazara/Core/Win32/DirectoryImpl.hpp>
@@ -29,7 +30,8 @@ namespace Nz
{ {
namespace namespace
{ {
thread_local String currentPath(DirectoryImpl::GetCurrent()); //FIXME: MinGW seems to dislike thread_local shared_ptr.. (using a std::string is a working hackfix)
thread_local std::string currentPath(DirectoryImpl::GetCurrent());
} }
Directory::Directory() : Directory::Directory() :