LOL! The second S.O. link actually goes to show how broken C++ is: https://stackoverflow.com/a/18298965/544947
The standard calls it "_Thread_local", pre-standard MSVC/icc(win)/borland called it __declspec(thread), and pre-standard GCC/icc(linux)/clang/sun called it __thread.
Code would also be free to just use _Thread_local and say that a C11 conforming compiler is required.