On Wed, Nov 4, 2009 at 10:16 PM, Andrzej K. Haczewski <ahaczewski@xxxxxxxxx> wrote: >>> +static THREAD_RET_TYPE threaded_find_deltas(void *arg) >> >> Why can't you just cast the function pointer in your pthread_create >> wrapper instead? No one cares about the returned value anyway. > > Because of calling convention - I'd have to cast cdecl function as > stdcall function, which would change the function call clean up (in > cdecl caller is responsible for unwinding stack, stdcall callee; the > effect - double stack unwinding). > Couldn't the windows version of pthread_create have a wrapper function, that corrected the calling convention, much like the function run_thread that start_async in run-command.c has? -- Erik "kusma" Faye-Lund -- To unsubscribe from this list: send the line "unsubscribe git" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html