when I define the following in example.i :
    #define THREAD_FUNC_DECL(function,param) DWORD WINAPI function(void *param)
    typedef unsigned (__stdcall *THREADFUNC)(void *);
 
the swig raise the error "Syntax error in input(2)."
 
and when I rewrite to that:
       #define THREAD_FUNC_DECL(function,param) DWORD WINAPI function(void *param)
       typedef unsigned (*THREADFUNC)(void *);
 
it gets ok!
 
but I Just only need the first one, what should I do?