mytype.h
上传用户:xiejiait
上传日期:2007-01-06
资源大小:881k
文件大小:1k
- /* @(#)mytype.h 1.2 99/12/19 Copyright 1998,1999 Heiko Eissfeldt */
- #if 4 == SIZEOF_LONG_INT
- #define UINT4 long unsigned int
- #define UINT4_C ULONG_C
- #else
- #if 4 == SIZEOF_INT
- #define UINT4 unsigned int
- #define UINT4_C UINT_C
- #else
- #if 4 == SIZEOF_SHORT_INT
- #define UINT4 short unsigned int
- #define UINT4_C USHORT_C
- #else
- error need an integer type with 32 bits, but do not know one!
- #endif
- #endif
- #endif
- #define TRUE 1
- #define FALSE 0
- #ifndef offset_of
- #define offset_of(TYPE, MEMBER) ((size_t) ((TYPE *)0)->MEMBER)
- #endif
- #ifndef offsetof
- #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
- #endif