mirror of
https://github.com/GrammaticalFramework/gf-core.git
synced 2026-04-09 04:59:31 -06:00
one more fix for thread local on MSVC
This commit is contained in:
@@ -186,6 +186,10 @@ private:
|
||||
DB_scope* next_scope;
|
||||
};
|
||||
|
||||
#if defined(_MSC_VER)
|
||||
extern PGF_INTERNAL_DECL __declspec( thread ) DB_scope *last_db_scope;
|
||||
#else
|
||||
extern PGF_INTERNAL_DECL __thread DB_scope *last_db_scope __attribute__((tls_model("initial-exec")));
|
||||
#endif
|
||||
|
||||
#endif
|
||||
|
||||
Reference in New Issue
Block a user