#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 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);
+}