10000 Attempt to work around issue with thread_local in mingw` · ChaiScript/ChaiScript@21c3853 · GitHub
[go: up one dir, main page]

Skip to content

Commit 21c3853

Browse files
committed
Attempt to work around issue with thread_local in mingw`
1 parent 40b1549 commit 21c3853

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

include/chaiscript/chaiscript_defines.hpp

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,8 +29,9 @@
2929
#define CHAISCRIPT_WINDOWS
3030
#endif
3131

32-
#if (defined(__GNUC__) && __GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) || (defined(__llvm__) && !defined(CHAISCRIPT_LIBCPP))
32+
#if ( ( (defined(__GNUC__) && __GNUC__ > 4) || (__GNUC__ == 4 && __GNUC_MINOR__ >= 8) ) && !defined(WIN32)) || (defined(__llvm__) && !defined(CHAISCRIPT_LIBCPP))
3333
/// Currently only g++>=4.8 supports this natively
34+
/// MinGW pretends to, but causes a crash on exit when thread_local objects are destructed
3435
/// \todo Make this support other compilers when possible
3536
#define CHAISCRIPT_HAS_THREAD_LOCAL
3637
#endif

0 commit comments

Comments
 (0)
0