Index: src/threading.h ================================================================== --- src/threading.h +++ src/threading.h @@ -65,17 +65,17 @@ # define of_thread_is_current(t) (t == GetCurrentThread()) # define of_thread_current GetCurrentThread #endif static OF_INLINE BOOL -of_thread_new(of_thread_t *thread, id (*main)(id), id data) +of_thread_new(of_thread_t *thread, id (*function)(id), id data) { #if defined(OF_HAVE_PTHREADS) - return !pthread_create(thread, NULL, (void*(*)(void*))main, + return !pthread_create(thread, NULL, (void*(*)(void*))function, (__bridge void*)data); #elif defined(_WIN32) - *thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)main, + *thread = CreateThread(NULL, 0, (LPTHREAD_START_ROUTINE)function, (__bridge void*)data, 0, NULL); return (thread != NULL); #endif }