one more fix for thread local on MSVC

This commit is contained in:
Krasimir Angelov
2023-01-25 23:26:09 +01:00
parent 696a9ffb16
commit fc6ded1759

View File

@@ -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