Core/Directory: Fix crash at the end of program with MinGW
Former-commit-id: 822d053793e0efc4e3dbb69fbfca556667c303f6
This commit is contained in:
parent
93fae53ea5
commit
ee2257810c
|
|
@ -8,6 +8,7 @@
|
|||
#include <Nazara/Core/File.hpp>
|
||||
#include <cstddef>
|
||||
#include <cstring>
|
||||
#include <string>
|
||||
|
||||
#if defined(NAZARA_PLATFORM_WINDOWS)
|
||||
#include <Nazara/Core/Win32/DirectoryImpl.hpp>
|
||||
|
|
@ -29,7 +30,8 @@ namespace Nz
|
|||
{
|
||||
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() :
|
||||
|
|
|
|||
Loading…
Reference in New Issue