diff --git a/include/omath/rev_eng/internal_rev_object.hpp b/include/omath/rev_eng/internal_rev_object.hpp index 63249fb..033ebd3 100644 --- a/include/omath/rev_eng/internal_rev_object.hpp +++ b/include/omath/rev_eng/internal_rev_object.hpp @@ -26,7 +26,11 @@ namespace omath::rev_eng template ReturnType call_virtual_method(auto... arg_list) { +#ifdef _MSC_VER using VirtualMethodType = ReturnType(__thiscall*)(void*, decltype(arg_list)...); +#else + using VirtualMethodType = ReturnType(__fastcall*)(void*, decltype(arg_list)...); +#endif return (*reinterpret_cast(this))[id](this, arg_list...); } };