Imported Upstream version 1.1.11
[platform/upstream/cdrkit.git] / icedax / mytype.h
1 /*
2  * This file has been modified for the cdrkit suite.
3  *
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).
6  *
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.
10  *
11  */
12
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
17 #else
18 #if 4 == SIZEOF_INT
19 #define UINT4 unsigned int
20 #define UINT4_C UINT_C
21 #else
22 #if 4 == SIZEOF_SHORT_INT
23 #define UINT4 short unsigned int
24 #define UINT4_C USHORT_C
25 #else
26 error need an integer type with 32 bits, but do not know one!
27 #endif
28 #endif
29 #endif
30 #define TRUE 1
31 #define FALSE 0
32
33 #ifndef offset_of
34 #define offset_of(TYPE, MEMBER) ((size_t) ((TYPE *)0)->MEMBER)
35 #endif
36 #ifndef offsetof
37 #define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER)
38 #endif
39