[windows] remove various workarounds which were required for vs2013

This commit is contained in:
Shawn Hoffman
2015-03-16 16:46:57 -07:00
parent 30702c17b6
commit bea18eedc4
4 changed files with 2 additions and 50 deletions

View File

@ -954,8 +954,7 @@ public:
template <typename T, typename... Args>
void ABI_CallLambdaC(const std::function<T(Args...)>* f, u32 p1)
{
// Double casting is required by VC++ for some reason.
auto trampoline = (void(*)())&XEmitter::CallLambdaTrampoline<T, Args...>;
auto trampoline = &XEmitter::CallLambdaTrampoline<T, Args...>;
ABI_CallFunctionPC((void*)trampoline, const_cast<void*>((const void*)f), p1);
}
}; // class XEmitter