Core/Directory: Fix crash at the end of program with MinGW
Former-commit-id: 822d053793e0efc4e3dbb69fbfca556667c303f6
This commit is contained in:
@@ -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() :
|
||||||
|
|||||||
Reference in New Issue
Block a user