From: Thiago A. C. <thi...@uo...> - 2002-03-03 20:38:45
|
Dam, Micro$oft strikes again :/ That link you sent is for PSDK 11/2001. Looks like they have changed the function prototypes. :( MSDN that comes with VS 6.0 has that one I paste. And that's what ZThread and other libraries uses. Looks like it's working fine as PVOID*. Maybe you guys could overload (?) either simply overload the prototype or use an inline function that takes the param, casts and call the other version (?). ----- Original Message ----- From: "Danny Smith" <dan...@ya...> To: "Thiago A. Correa" <thi...@uo...>; <Min...@li...> Sent: Sunday, March 03, 2002 4:33 PM Subject: Re: [Mingw-users] Bug: Wrong function prototype InterlockedCompareExchange() > --- "Thiago A. Correa" <thi...@uo...> wrote: > At winbase.h, > line 1314 > > > > include/zthread/WIN32_FastMutex.h:111: passing `void **' as argument 1 of > > `InterlockedCompareExchange(long int *, long int, long int)' > > > > according to MSDN: > > > > PVOID InterlockedCompareExchange( > > PVOID *Destination, // pointer to the destination pointer > > PVOID Exchange, // the exchange value > > PVOID Comperand // the value to compare > > ); > > > > According to: > > http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dllproc/syn chro_1lb9.asp > > the current prototype in winbase.h is correct. > > > > > > _______________________________________________ > > MinGW-users mailing list > > Min...@li... > > > > You may change your MinGW Account Options or unsubscribe at: > > https://lists.sourceforge.net/lists/listinfo/mingw-users > > http://movies.yahoo.com.au - Yahoo! Movies > - Vote for your nominees in our online Oscars pool. > |