2 * This file has been modified for the cdrkit suite.
4 * The behaviour and appearence of the program code below can differ to a major
5 * extent from the version distributed by the original author(s).
7 * For details, see Changelog file distributed with the cdrkit package. If you
8 * received this file from another source then ask the distributing person for
9 * a log of modifications.
13 /* @(#)mytype.h 1.2 99/12/19 Copyright 1998,1999 Heiko Eissfeldt */
14 #if 4 == SIZEOF_LONG_INT
15 #define UINT4 long unsigned int
16 #define UINT4_C ULONG_C
19 #define UINT4 unsigned int
20 #define UINT4_C UINT_C
22 #if 4 == SIZEOF_SHORT_INT
23 #define UINT4 short unsigned int
24 #define UINT4_C USHORT_C
26 error need an integer type with 32 bits, but do not know one!
34 #define offset_of(TYPE, MEMBER) ((size_t) ((TYPE *)0)->MEMBER)
37 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)