mirror of
https://github.com/gabime/spdlog.git
synced 2024-12-26 18:41:35 +08:00
Merge pull request #329 from PMExtra/master
fixed compilation error in clang before version 8
This commit is contained in:
commit
68cc3e6856
@ -315,7 +315,7 @@ inline size_t _thread_id()
|
|||||||
//Return current thread id as size_t (from thread local storage)
|
//Return current thread id as size_t (from thread local storage)
|
||||||
inline size_t thread_id()
|
inline size_t thread_id()
|
||||||
{
|
{
|
||||||
#if defined(_MSC_VER) && (_MSC_VER < 1900)
|
#if defined(_MSC_VER) && (_MSC_VER < 1900) || defined(__clang_major__) && (__clang_major__ < 8)
|
||||||
return _thread_id();
|
return _thread_id();
|
||||||
#else
|
#else
|
||||||
static thread_local const size_t tid = _thread_id();
|
static thread_local const size_t tid = _thread_id();
|
||||||
|
Loading…
Reference in New Issue
Block a user