mirror of
https://github.com/PabloMK7/citra
synced 2024-11-15 05:08:23 +00:00
Merge pull request #5603 from FearlessTobi/port-4887
Port yuzu-emu/yuzu#4887: "microprofile: Silence warning in headers"
This commit is contained in:
commit
3115529be7
1 changed files with 5 additions and 1 deletions
6
externals/microprofile/microprofile.h
vendored
6
externals/microprofile/microprofile.h
vendored
|
@ -927,7 +927,11 @@ typedef HANDLE MicroProfileThread;
|
||||||
DWORD _stdcall ThreadTrampoline(void* pFunc)
|
DWORD _stdcall ThreadTrampoline(void* pFunc)
|
||||||
{
|
{
|
||||||
MicroProfileThreadFunc F = (MicroProfileThreadFunc)pFunc;
|
MicroProfileThreadFunc F = (MicroProfileThreadFunc)pFunc;
|
||||||
return (uint32_t)F(0);
|
|
||||||
|
// The return value of F will always return a void*, however, this is for
|
||||||
|
// compatibility with pthreads. The underlying "address" of the pointer
|
||||||
|
// is always a 32-bit value, so this cast is safe to perform.
|
||||||
|
return static_cast<DWORD>(reinterpret_cast<uint64_t>(F(0)));
|
||||||
}
|
}
|
||||||
|
|
||||||
void MicroProfileThreadStart(MicroProfileThread* pThread, MicroProfileThreadFunc Func)
|
void MicroProfileThreadStart(MicroProfileThread* pThread, MicroProfileThreadFunc Func)
|
||||||
|
|
Loading…
Reference in a new issue