diff --git a/rpcs3/util/shared_ptr.hpp b/rpcs3/util/shared_ptr.hpp index a3b339845d..f99b0414d4 100644 --- a/rpcs3/util/shared_ptr.hpp +++ b/rpcs3/util/shared_ptr.hpp @@ -19,7 +19,12 @@ namespace stx }; template - static const fake_t> sample{}; +#ifdef _MSC_VER + static const +#else + static thread_local const +#endif + fake_t> sample{}; } template