changes to wintype.h so as not to collide with bcm2835.h
This commit is contained in:
parent
4f879c4d6d
commit
667ac01f92
|
@ -133,8 +133,12 @@ typedef UINT64 TIMESTAMP;
|
|||
|
||||
#define MAKEBOOL(val) ((val) ? TRUE : FALSE)
|
||||
#define OFFSETOF(struc, field) ((UINT_PTR)(&(((struc *)0)->field)))
|
||||
#ifndef MIN
|
||||
#define MIN(x, y) (((x) < (y)) ? (x) : (y))
|
||||
#endif
|
||||
#ifndef MAX
|
||||
#define MAX(x, y) (((x) > (y)) ? (x) : (y))
|
||||
#endif
|
||||
|
||||
#define MAKEWORD(a, b) ((WORD)((((UINT_PTR)(a)) & 0xFF) | ((((UINT_PTR)(b)) & 0xFF) << 8)))
|
||||
#define MAKELONG(a, b) ((LONG)((((UINT_PTR)(a)) & 0xFFFF) | ((((UINT_PTR)(b)) & 0xFFFF) << 16)))
|
||||
|
|
Loading…
Reference in New Issue
Block a user