diff --git a/include/common.h b/include/common.h index 665906e..e1805e4 100644 --- a/include/common.h +++ b/include/common.h @@ -88,7 +88,7 @@ void SpawnThread(const F& f) // works in DllMain unlike std thread }, copy, 0, nullptr)); } -static struct // should be inline but MSVC (linker) is bugged +inline struct { inline static BYTE DUMMY[100]; template operator T*() { static_assert(sizeof(T) < sizeof(DUMMY)); return (T*)DUMMY; }