From: <ebo...@us...> - 2002-09-29 22:15:35
|
Update of /cvsroot/alleg/allegro/src/win In directory usw-pr-cvs1:/tmp/cvs-serv10076/src/win Modified Files: wthread.c Log Message: Re-enabled a workaround for a missing header file with MSVC Index: wthread.c =================================================================== RCS file: /cvsroot/alleg/allegro/src/win/wthread.c,v retrieving revision 1.7 retrieving revision 1.8 diff -u -d -r1.7 -r1.8 --- wthread.c 26 Sep 2002 09:51:46 -0000 1.7 +++ wthread.c 29 Sep 2002 22:15:33 -0000 1.8 @@ -29,6 +29,9 @@ #endif +/* COINIT_MULTITHREADED is not defined in objbase.h for MSVC */ +#define _COINIT_MULTITHREADED 0 + typedef HRESULT(CALLBACK * _CoInitializeEx_ptr) (LPVOID, DWORD); static _CoInitializeEx_ptr _CoInitializeEx = NULL; static int first_call = 1; @@ -66,7 +69,7 @@ } if (_CoInitializeEx != NULL) - _CoInitializeEx(NULL, COINIT_MULTITHREADED); + _CoInitializeEx(NULL, _COINIT_MULTITHREADED); else CoInitialize(NULL); } |