lists.zerezo.com
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
***BOGO*** [Mingw-users] InterlockedIncrement/Decrement missing volatile qualifier?
- Date: Tue, 24 Jun 2008 23:31:03 -0400
- From: "Jason Cipriani" <jason.cipriani@xxxxxxxxx>
- Subject: ***BOGO*** [Mingw-users] InterlockedIncrement/Decrement missing volatile qualifier?
InterlockedIncrement and InterlockedDecrement:
http://msdn.microsoft.com/en-us/library/ms683614(VS.85).aspx
http://msdn.microsoft.com/en-us/library/ms683580.aspx
Take a pointer to a volatile LONG as a parameter:
LONG __cdecl InterlockedDecrement(
__inout LONG volatile *Addend
);
In MinGW there is no volatile, from MinGW winbase.h:
LONG WINAPI InterlockedDecrement(LPLONG);
At the bare minimum, this causes some compatibility issues when
compiling existing code.
Jason
-------------------------------------------------------------------------
Check out the new SourceForge.net Marketplace.
It's the best place to buy or sell services for
just about anything Open Source.
http://sourceforge.net/services/buy/index.php
_______________________________________________
MinGW-users mailing list
MinGW-users@xxxxxxxxxxxxxxxxxxxxx
You may change your MinGW Account Options or unsubscribe at:
https://lists.sourceforge.net/lists/listinfo/mingw-users