Thanks for this awesome library!
I encountered an error on Windows 11 ARM64 (24H2) via MSYS2 (mingw-w64-clang-x86_x64-clang) and wonder how I should deal with it:
C:/msys64/.../dmon.h:517:39: error: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'volatile long *' [-Wincompatible-pointer-types]
517 | while (InterlockedCompareExchange(&_dmon.quit, 0, 0) == 0) {
| ^~~~~~~~~~~
C:/msys64/clang64/include/psdk_inc/intrin-impl.h:1714:57: note: passing argument to parameter 'Destination' here
1714 | __LONG32 _InterlockedCompareExchange(__LONG32 volatile *Destination, __LONG32 ExChange, __LONG32 Comperand) {
| ^
C:/msys64/.../dmon.h:575:48: error: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'volatile long *' [-Wincompatible-pointer-types]
575 | if (InterlockedCompareExchange(&_dmon.quit, 0, 0) == 0) {
| ^~~~~~~~~~~
C:/msys64/clang64/include/psdk_inc/intrin-impl.h:1714:57: note: passing argument to parameter 'Destination' here
1714 | __LONG32 _InterlockedCompareExchange(__LONG32 volatile *Destination, __LONG32 ExChange, __LONG32 Comperand) {
| ^
C:/msys64/.../dmon.h:618:25: error: incompatible pointer types passing 'uint32_t *' (aka 'unsigned int *') to parameter of type 'volatile long *' [-Wincompatible-pointer-types]
618 | InterlockedExchange(&_dmon.quit, 1);
| ^~~~~~~~~~~
C:/msys64/clang64/include/psdk_inc/intrin-impl.h:1781:50: note: passing argument to parameter 'Target' here
1781 | __LONG32 _InterlockedExchange(__LONG32 volatile *Target, __LONG32 Value) {
| ^
From what I gathered, this is related to e846d40. When I use the version before that it compiles. Why was this changed?
Thanks for this awesome library!
I encountered an error on Windows 11 ARM64 (24H2) via MSYS2 (mingw-w64-clang-x86_x64-clang) and wonder how I should deal with it:
From what I gathered, this is related to e846d40. When I use the version before that it compiles. Why was this changed?