From 013b12f860ccb2e418bb10766c57fcc18b7b966a Mon Sep 17 00:00:00 2001 From: Ladislav Zezula Date: Sat, 15 May 2021 17:49:53 +0200 Subject: Fixed thread_local --- src/FileStream.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/FileStream.cpp') diff --git a/src/FileStream.cpp b/src/FileStream.cpp index 2266518..a3c8e9b 100644 --- a/src/FileStream.cpp +++ b/src/FileStream.cpp @@ -34,7 +34,7 @@ // Local functions - platform-specific functions #ifndef STORMLIB_WINDOWS -static thread_local DWORD nLastError = ERROR_SUCCESS; +static THREAD_LOCAL DWORD nLastError = ERROR_SUCCESS; DWORD GetLastError() { -- cgit v1.2.3