X-Git-Url: http://git.silcnet.org/gitweb/?p=silc.git;a=blobdiff_plain;f=includes%2Fsilcincludes.h;h=56e265398869b3d974007957750c024df2965c16;hp=9117082c4a2525cb0438f0e75c1cf90e4d217dca;hb=392c65ba9e06f633115ab2b88ebdbbb63ccc59c8;hpb=7842456e8b7c8a81a88a9d4db35225c053eefb1c diff --git a/includes/silcincludes.h b/includes/silcincludes.h index 9117082c..56e26539 100644 --- a/includes/silcincludes.h +++ b/includes/silcincludes.h @@ -138,6 +138,10 @@ #include #endif +#ifdef HAVE_STDDEF_H +#include +#endif + #endif /* !SILC_WIN32 */ #ifndef HAVE_GETOPT_LONG @@ -151,6 +155,11 @@ #define FALSE 0 #endif +/* Define offsetof */ +#ifndef offsetof +#define offsetof(TYPE, MEMBER) ((size_t) &((TYPE *)0)->MEMBER) +#endif + /* Define types. The types must be at least of the specified size */ #undef uint8 #undef uint16 @@ -237,6 +246,8 @@ typedef uint32 * void *; #include "silchashtable.h" #include "silclog.h" #include "silcmemory.h" +#include "silclist.h" +#include "silcdlist.h" #include "silcbuffer.h" #include "silcbufutil.h" #include "silcbuffmt.h" @@ -258,10 +269,6 @@ typedef uint32 * void *; #include "silcauth.h" #include "silcprivate.h" -/* TRQ (SilcList API and SilcDList API) */ -#include "silclist.h" -#include "silcdlist.h" - #ifdef SILC_SIM /* SILC Module library includes */ #include "silcsim.h"