updates.
[silc.git] / win32 / trq_conf.h
diff --git a/win32/trq_conf.h b/win32/trq_conf.h
new file mode 100644 (file)
index 0000000..21c895f
--- /dev/null
@@ -0,0 +1,62 @@
+/*   -*- c -*-\r
+ * \r
+ *  ----------------------------------------------------------------------\r
+ *  Deque for struct type with only one link pointer (x->next).\r
+ *  ----------------------------------------------------------------------\r
+ *  Created      : Fri Dec  5 11:19:37 1997 tri\r
+ *  Last modified: Thu Apr 16 17:35:57 1998 tri\r
+ *  ----------------------------------------------------------------------\r
+ *  Copyright © 1995-1998\r
+ *  Timo J. Rinne <tri@iki.fi>\r
+ *  All rights reserved.  See file COPYRIGHT for details.\r
+ * \r
+ *  Address: Cirion oy, PO-BOX 250, 00121 Helsinki, Finland\r
+ *  ----------------------------------------------------------------------\r
+ *  Any express or implied warranties are disclaimed.  In no event\r
+ *  shall the author be liable for any damages caused (directly or\r
+ *  otherwise) by the use of this software.\r
+ *\r
+ *  Please, send your patches to <tri@iki.fi>.\r
+ *  ----------------------------------------------------------------------\r
+ *\r
+ * $Id$\r
+ *\r
+ * $Log$
+ * Revision 1.1  2001/07/23 11:07:56  priikone
+ *     updates.
+ *\r
+ * Revision 1.1.1.1  2000/10/31 19:59:30  priikone\r
+ *     Imported TRQ and SilList and SilcDList API's.\r
+ *\r
+ * Revision 1.1  1998/04/16 14:39:42  tri\r
+ * Initial revision\r
+ *\r
+ *\r
+ */\r
+#ifndef __TRQ_CONF__H__\r
+#define __TRQ_CONF__H__ 1\r
+\r
+/*\r
+ * stddef.h is included here if such file exists.\r
+ * offsetof should be defined there.\r
+ */\r
+#include <stddef.h>\r
+\r
+/*\r
+ * If compiler supports inline functions, __TRQ__INLINE__FUNCTION__\r
+ * is defined to the correct keyword.  Usually this is defined\r
+ * as inline, __inline__ or __inline.  If inline functions are\r
+ * not supported, __TRQ__INLINE__FUNCTION__ is undefined.\r
+ */\r
+#define __TRQ__INLINE__FUNCTION__ __inline\r
+\r
+typedef unsigned long trq_p_i_t; /* Integral type size of an pointer */\r
+\r
+#ifdef offsetof\r
+#define _Q_STRUCT_OFFSET(t, m) ((trq_p_i_t)(offsetof(t, m)))\r
+#else\r
+#define _Q_STRUCT_OFFSET(t, m) (((trq_p_i_t)(&(((t *)0)->m))))\r
+#endif\r
+\r
+#endif /* !__TRQ_CONF__H__ */\r
+/* eof (trq_conf.h) */\r