diff options
| author | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-19 14:32:50 (GMT) |
|---|---|---|
| committer | Simon Robertshaw <simon@hardwired.org.uk> | 2011-05-19 14:32:50 (GMT) |
| commit | af68469f6af3dd1e7a856b2a69f7a31b1b9b2d89 (patch) | |
| tree | 97ca12db043b81aa6a6dd7c1c82cb189009397be /src | |
| parent | 3ff800ec9a71425b6f1d505a332ec6d0a95fcbd9 (diff) | |
| download | powder-af68469f6af3dd1e7a856b2a69f7a31b1b9b2d89.zip powder-af68469f6af3dd1e7a856b2a69f7a31b1b9b2d89.tar.gz | |
pthread Win32 static linking
Diffstat (limited to 'src')
| -rw-r--r-- | src/main.c | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -1392,6 +1392,10 @@ int main(int argc, char *argv[]) PyObject *pname,*pmodule,*pfunc,*pvalue,*pargs,*pstep,*pkey; PyObject *tpt_console_obj; #endif +#ifdef PTW32_STATIC_LIB + pthread_win32_process_attach_np(); + pthread_win32_thread_attach_np(); +#endif decorations = calloc((XRES+BARSIZE)*YRES, PIXELSIZE); vid_buf = calloc((XRES+BARSIZE)*(YRES+MENUSIZE), PIXELSIZE); pers_bg = calloc((XRES+BARSIZE)*YRES, PIXELSIZE); @@ -3219,7 +3223,6 @@ int main(int argc, char *argv[]) } SDL_CloseAudio(); http_done(); - #ifdef PYCONSOLE PyRun_SimpleString("import os,tempfile,os.path\ntry:\n os.remove(os.path.join(tempfile.gettempdir(),'tpt_console.py'))\nexcept:\n pass"); @@ -3228,6 +3231,10 @@ int main(int argc, char *argv[]) Py_Finalize();//cleanup any python stuff. #endif +#ifdef PTW32_STATIC_LIB + pthread_win32_thread_detach_np(); + pthread_win32_process_detach_np(); +#endif return 0; } #endif |
