Attempt to fix non-Windows builds

This commit is contained in:
Daniel R. 2024-10-30 15:05:42 +01:00 committed by IndecisiveTurtle
parent 1318155ef3
commit 08b99eef68
2 changed files with 2 additions and 1 deletions

View file

@ -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
}

View file

@ -8,6 +8,7 @@ namespace Core {
class Thread {
public:
using ThreadFunc = void (*)(void*);
using PthreadFunc = void* (*)(void*);
Thread();
~Thread();