--- xmil/common.h 2004/08/03 11:01:59 1.2 +++ xmil/common.h 2004/08/07 07:19:56 1.4 @@ -4,14 +4,14 @@ enum { FAILURE = 1 }; -#ifndef BRESULT -#define BRESULT UINT8 -#endif - #ifndef PI #define PI 3.14159265357989 #endif +#ifndef BRESULT +#define BRESULT UINT +#endif + #ifndef LOADINTELDWORD #define LOADINTELDWORD(a) (((UINT32)(a)[0]) | \ ((UINT32)(a)[1] << 8) | \ @@ -49,6 +49,9 @@ enum { #define REG16 UINT16 #endif +#ifndef LOW10 +#define LOW10(a) ((a) & 0x03ff) +#endif #ifndef LOW11 #define LOW11(a) ((a) & 0x07ff) #endif @@ -148,21 +151,3 @@ enum { #define FASTCALL #endif - -#if 0 - -typedef struct { - DWORD x; - DWORD y; - DWORD w; - DWORD h; -} NP2RECT; - - -typedef struct { - DWORD x; - DWORD y; -} XYSIZE; - -#endif -