On 9/16/25 15:47, Foad Sojoodi Farimani wrote:
This patch fixes compilation errors when cross-compiling libXext with MinGW-w64.

The errors occur in XAppgroup.c due to improper casting between HWND pointers
and long integers of different sizes. The fix uses uintptr_t as an intermediate
type for safe pointer-to-integer conversion and corrects the Data32 call to
pass the address of the variable instead of casting the integer to a pointer.

Build tested with MinGW-w64 on Windows.

Signed-off-by: Dr. Foad S. Farimani <[email protected]>

Thanks - since we use gitlab instead of email for patch submission now, I've
submitted this patch there:

https://gitlab.freedesktop.org/xorg/lib/libxext/-/merge_requests/15

--
        -Alan Coopersmith-                 [email protected]
         Oracle Solaris Engineering - https://blogs.oracle.com/solaris

Reply via email to