mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-01-01 12:46:01 +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_t* pthr = reinterpret_cast<pthread_t*>(native_handle);
|
||||||
pthread_attr_t pattr;
|
pthread_attr_t pattr;
|
||||||
pthread_attr_init(&pattr);
|
pthread_attr_init(&pattr);
|
||||||
return pthread_create(pthr, &pattr, func, arg);
|
return pthread_create(pthr, &pattr, (PthreadFunc)func, arg);
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -8,6 +8,7 @@ namespace Core {
|
||||||
class Thread {
|
class Thread {
|
||||||
public:
|
public:
|
||||||
using ThreadFunc = void (*)(void*);
|
using ThreadFunc = void (*)(void*);
|
||||||
|
using PthreadFunc = void* (*)(void*);
|
||||||
|
|
||||||
Thread();
|
Thread();
|
||||||
~Thread();
|
~Thread();
|
||||||
|
|
Loading…
Reference in a new issue