pthread Win32 static linking
This commit is contained in:
parent
3ff800ec9a
commit
af68469f6a
@ -1391,6 +1391,10 @@ int main(int argc, char *argv[])
|
|||||||
#ifdef PYCONSOLE
|
#ifdef PYCONSOLE
|
||||||
PyObject *pname,*pmodule,*pfunc,*pvalue,*pargs,*pstep,*pkey;
|
PyObject *pname,*pmodule,*pfunc,*pvalue,*pargs,*pstep,*pkey;
|
||||||
PyObject *tpt_console_obj;
|
PyObject *tpt_console_obj;
|
||||||
|
#endif
|
||||||
|
#ifdef PTW32_STATIC_LIB
|
||||||
|
pthread_win32_process_attach_np();
|
||||||
|
pthread_win32_thread_attach_np();
|
||||||
#endif
|
#endif
|
||||||
decorations = calloc((XRES+BARSIZE)*YRES, PIXELSIZE);
|
decorations = calloc((XRES+BARSIZE)*YRES, PIXELSIZE);
|
||||||
vid_buf = calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE);
|
vid_buf = calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE);
|
||||||
@ -3219,7 +3223,6 @@ int main(int argc, char *argv[])
|
|||||||
}
|
}
|
||||||
SDL_CloseAudio();
|
SDL_CloseAudio();
|
||||||
http_done();
|
http_done();
|
||||||
|
|
||||||
#ifdef PYCONSOLE
|
#ifdef PYCONSOLE
|
||||||
|
|
||||||
PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.py'))\nexcept:\n pass");
|
PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.py'))\nexcept:\n pass");
|
||||||
@ -3227,6 +3230,10 @@ int main(int argc, char *argv[])
|
|||||||
PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.pyc'))\nexcept:\n pass");
|
PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.pyc'))\nexcept:\n pass");
|
||||||
|
|
||||||
Py_Finalize();//cleanup any python stuff.
|
Py_Finalize();//cleanup any python stuff.
|
||||||
|
#endif
|
||||||
|
#ifdef PTW32_STATIC_LIB
|
||||||
|
pthread_win32_thread_detach_np();
|
||||||
|
pthread_win32_process_detach_np();
|
||||||
#endif
|
#endif
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user