From: leon zadorin <leonleon77@gm...> - 2007-06-14 04:32:44
in mingw's include dir:
winbase.h declares InterlockedIncrement as:
LONG WINAPI InterlockedIncrement(LPLONG);
it is declared as
LONG __cdecl InterlockedIncrement(
LONG volatile* Addend
The code which follows the MS declarations (i.e. passes a pointer to
volatile int) does no build by default on mingw (cannot coerce
"pointer to int" to "pointer to volatile int")...
anyway - am wondering why is there a difference in prototyping between
mingw and MS ?