diff -Naur a/include/libEMF/wine/winnt.h b/include/libEMF/wine/winnt.h --- a/include/libEMF/wine/winnt.h 2024-11-18 14:36:40.978903092 +0800 +++ b/include/libEMF/wine/winnt.h 2024-11-18 14:47:14.007013642 +0800 @@ -41,6 +41,10 @@ # undef WORDS_BIGENDIAN # undef BITFIELDS_BIGENDIAN # undef ALLOW_UNALIGNED_ACCESS +#elif defined(__sw_64__) +# undef WORDS_BIGENDIAN +# undef BITFIELDS_BIGENDIAN +# undef ALLOW_UNALIGNED_ACCESS #elif defined(__arm__) # undef WORDS_BIGENDIAN # undef BITFIELDS_BIGENDIAN @@ -274,7 +278,7 @@ typedef int INT, *PINT, *LPINT; typedef unsigned int UINT, *PUINT, *LPUINT; /* Not sure this is correct. Probably should depend on the compiler, too. */ -#if defined( __LP64__) || defined(__alpha__) +#if defined( __LP64__) || defined(__alpha__) || defined(__sw_64__) typedef unsigned int DWORD, *PDWORD, *LPDWORD; typedef unsigned int ULONG, *PULONG, *LPULONG; #else @@ -320,7 +324,7 @@ typedef BYTE BOOLEAN, *PBOOLEAN; typedef char CHAR, *PCHAR; typedef short SHORT, *PSHORT; -#if defined(__LP64__) || defined(__alpha__) +#if defined(__LP64__) || defined(__alpha__) || defined(__sw_64__) typedef int LONG, *PLONG, *LPLONG; #else typedef long LONG, *PLONG, *LPLONG; @@ -935,7 +939,7 @@ #endif /* __x86_64__ */ /* Alpha context definitions */ -#if defined(__alpha__) +#if defined(__alpha__) || defined(__sw_64__) #define CONTEXT_ALPHA 0x00020000