X-Git-Url: https://notaz.gp2x.de/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=c_auto.h;h=279f33531d31ad9cabe29b28797dcb7f796398a0;hb=3682b4b1df7390d2c504528e920ef8ff40f47b0c;hp=d8122fa13e062ca0d0c22e07f29d458cbc237a87;hpb=e56ab892c4ff9eef34f85fab010d7084b9c59e81;p=ia32rtools.git diff --git a/c_auto.h b/c_auto.h index d8122fa..279f335 100644 --- a/c_auto.h +++ b/c_auto.h @@ -10,11 +10,18 @@ #define s16 int16_t #define s32 int32_t #define s64 int64_t +typedef struct { + u64 q; + u32 d[2]; + u16 w[4]; + u8 b[8]; +} mmxr; + #define bool int #define _BYTE BYTE #define _WORD WORD #define _DWORD DWORD -#define _UNKNOWN char +#define _UNKNOWN uint8_t #undef LOBYTE #undef LOWORD #undef HIBYTE @@ -32,3 +39,13 @@ #define noreturn __attribute__((noreturn)) +#ifdef __WINE__ +#define PCVOID LPCVOID +#define __VALIST __ms_va_list +#endif + +static inline BOOL PtInRect_sa(LPCRECT r, int x, int y) +{ + POINT p = { x, y }; + return PtInRect(r, p); +}