updates.
[silc.git] / win32 / trq_conf.h
1 /*   -*- c -*-\r
2  * \r
3  *  ----------------------------------------------------------------------\r
4  *  Deque for struct type with only one link pointer (x->next).\r
5  *  ----------------------------------------------------------------------\r
6  *  Created      : Fri Dec  5 11:19:37 1997 tri\r
7  *  Last modified: Thu Apr 16 17:35:57 1998 tri\r
8  *  ----------------------------------------------------------------------\r
9  *  Copyright © 1995-1998\r
10  *  Timo J. Rinne <tri@iki.fi>\r
11  *  All rights reserved.  See file COPYRIGHT for details.\r
12  * \r
13  *  Address: Cirion oy, PO-BOX 250, 00121 Helsinki, Finland\r
14  *  ----------------------------------------------------------------------\r
15  *  Any express or implied warranties are disclaimed.  In no event\r
16  *  shall the author be liable for any damages caused (directly or\r
17  *  otherwise) by the use of this software.\r
18  *\r
19  *  Please, send your patches to <tri@iki.fi>.\r
20  *  ----------------------------------------------------------------------\r
21  *\r
22  * $Id$\r
23  *\r
24  * $Log$
25  * Revision 1.1  2001/07/23 11:07:56  priikone
26  *      updates.
27  *\r
28  * Revision 1.1.1.1  2000/10/31 19:59:30  priikone\r
29  *      Imported TRQ and SilList and SilcDList API's.\r
30  *\r
31  * Revision 1.1  1998/04/16 14:39:42  tri\r
32  * Initial revision\r
33  *\r
34  *\r
35  */\r
36 #ifndef __TRQ_CONF__H__\r
37 #define __TRQ_CONF__H__ 1\r
38 \r
39 /*\r
40  * stddef.h is included here if such file exists.\r
41  * offsetof should be defined there.\r
42  */\r
43 #include <stddef.h>\r
44 \r
45 /*\r
46  * If compiler supports inline functions, __TRQ__INLINE__FUNCTION__\r
47  * is defined to the correct keyword.  Usually this is defined\r
48  * as inline, __inline__ or __inline.  If inline functions are\r
49  * not supported, __TRQ__INLINE__FUNCTION__ is undefined.\r
50  */\r
51 #define __TRQ__INLINE__FUNCTION__ __inline\r
52 \r
53 typedef unsigned long trq_p_i_t; /* Integral type size of an pointer */\r
54 \r
55 #ifdef offsetof\r
56 #define _Q_STRUCT_OFFSET(t, m) ((trq_p_i_t)(offsetof(t, m)))\r
57 #else\r
58 #define _Q_STRUCT_OFFSET(t, m) (((trq_p_i_t)(&(((t *)0)->m))))\r
59 #endif\r
60 \r
61 #endif /* !__TRQ_CONF__H__ */\r
62 /* eof (trq_conf.h) */\r