aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/FileStream.cpp2
-rw-r--r--src/StormPort.h6
2 files changed, 1 insertions, 7 deletions
diff --git a/src/FileStream.cpp b/src/FileStream.cpp
index a3c8e9b..2266518 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()
{
diff --git a/src/StormPort.h b/src/StormPort.h
index ec9fc07..d386414 100644
--- a/src/StormPort.h
+++ b/src/StormPort.h
@@ -277,8 +277,6 @@
#define STORMLIB_LITTLE_ENDIAN
#endif
- #define THREAD_LOCAL thread_local
-
// Platforms with mmap support
#if defined(__linux__) || defined(__FreeBSD__) || defined(__NetBSD__) || defined(__OpenBSD__) || defined(__DragonFly__)
#include <sys/mman.h>
@@ -395,10 +393,6 @@
#define _countof(x) (sizeof(x) / sizeof(x[0]))
#endif
-#ifndef THREAD_LOCAL
- #define THREAD_LOCAL
-#endif
-
//-----------------------------------------------------------------------------
// Swapping functions