mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2024-12-29 11:06:07 +00:00
Attempt to fix non-Windows builds
This commit is contained in:
parent
1318155ef3
commit
08b99eef68
|
@ -23,7 +23,7 @@ int Thread::Create(ThreadFunc func, void* arg) {
|
|||
pthread_t* pthr = reinterpret_cast<pthread_t*>(native_handle);
|
||||
pthread_attr_t pattr;
|
||||
pthread_attr_init(&pattr);
|
||||
return pthread_create(pthr, &pattr, func, arg);
|
||||
return pthread_create(pthr, &pattr, (PthreadFunc)func, arg);
|
||||
#endif
|
||||
}
|
||||
|
||||
|
|
|
@ -8,6 +8,7 @@ namespace Core {
|
|||
class Thread {
|
||||
public:
|
||||
using ThreadFunc = void (*)(void*);
|
||||
using PthreadFunc = void* (*)(void*);
|
||||
|
||||
Thread();
|
||||
~Thread();
|
||||
|
|
Loading…
Reference in a new issue