X-Git-Url: https://git.cworth.org/git?a=blobdiff_plain;f=common%2Fos_thread.hpp;h=5fbdaabf274e0f51304b209f807b133bcb71d55e;hb=58167d7abcd4159c5524ceca67f0ec58c96b0af7;hp=6c0b488c0152474a031a82839b0c767777714fdd;hpb=39a9f3650233206061134772417bfada16cd07be;p=apitrace diff --git a/common/os_thread.hpp b/common/os_thread.hpp index 6c0b488..5fbdaab 100644 --- a/common/os_thread.hpp +++ b/common/os_thread.hpp @@ -348,7 +348,7 @@ private: DWORD id = 0; _native_handle = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)f, (LPVOID)arg, 0, &id); #else - pthread_create(&_native_handle, NULL, f, arg); + pthread_create(&_native_handle, NULL, ( void *(*) (void *))f, arg); #endif }