Author: Pekka Riikonen <priikone@silcnet.org>
- Copyright (C) 1997 - 2005 Pekka Riikonen
+ Copyright (C) 1997 - 2007 Pekka Riikonen
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License as published by
#endif
#endif
-#if defined(__EPOC32__)
-#ifndef SILC_EPOC
-#define SILC_EPOC
-#undef SILC_UNIX
-#endif
-#endif
-
-#ifdef BEOS
-#ifndef SILC_BEOS
-#define SILC_BEOS
-#undef SILC_UNIX
-#endif
-#elif defined(__BEOS__)
-#ifndef SILC_BEOS
-#define SILC_BEOS
-#undef SILC_UNIX
-#endif
-#endif
-
-#if defined(OS2)
-#ifndef SILC_OS2
-#define SILC_OS2
+#if defined(__EPOC32__) || defined(__SYMBIAN32__)
+#ifndef SILC_SYMBIAN
+#define SILC_SYMBIAN
#undef SILC_UNIX
+#undef SILC_WIN32
#endif
#endif
#if defined(__MACH__) && defined(__APPLE__)
#ifndef SILC_MACOSX
#define SILC_MACOSX
+#undef SILC_WIN32
+#undef SILC_SYMBIAN
#endif
#endif
@__SILC_ENABLE_DEBUG@
#if defined(HAVE_SILCDEFS_H)
+
/* Automatically generated configuration header */
+#ifndef SILC_SYMBIAN
#include "silcdefs.h"
+#else
+#include "../symbian/silcdefs.h"
+#endif /* SILC_SYMBIAN */
#include "silcdistdefs.h"
+
+#else
+
+/* Autodetect CPU so that inline assembly in headers are enabled */
+
+#if defined(__i386__)
+#undef SILC_I386
+#define SILC_I386
+#undef SILC_I486
+#define SILC_I486
+#endif /* __i386__ */
+
+#if defined(__x86_64__)
+#undef SILC_X86_64
+#define SILC_X86_64
+#endif /* __x86_64__ */
+
+#if defined(__ia64__)
+#undef SILC_IA64
+#define SILC_IA64
+#endif /* __ia64__ */
+
+#if defined(__ppc__) || defined(__ppc64__)
+#undef SILC_POWERPC
+#define SILC_POWERPC
+#endif /* __ppc__ || __ppc64__ */
+
+#ifndef SILC_ALIGNMENT
+#define SILC_ALIGNMENT SILC_SIZEOF_VOID_P
+#endif /* SILC_ALIGNMENT */
+
#endif /* HAVE_SILCDEFS_H */
/* Platform specific includes */
#include "silcwin32.h"
#endif
-#if defined(SILC_EPOC)
-#include "silcepoc.h"
-#endif
-
-#if defined(SILC_BEOS)
-#include "silcbeos.h"
-#endif
-
-#if defined(SILC_OS2)
-#include "silcos2.h"
+#if defined(SILC_SYMBIAN)
+#include "silcsymbian.h"
#endif
#ifndef DLLAPI
#include <unistd.h>
#include <sys/time.h>
#include <pwd.h>
-#include <grp.h>
#include <sys/times.h>
+#ifdef HAVE_GRP_H
+#include <grp.h>
+#endif
+
#if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT)
#include <getopt.h>
#else
#endif /* !SILC_WIN32 */
/* Include generic SILC type definitions */
+#include "silcerrno.h"
#include "silctypes.h"
+#include "silcbitops.h"
+#include "silcmutex.h"
+#include "silcatomic.h"
#include "silcversion.h"
/* SILC util library includes */
+#include "silcgetopt.h"
+#include "silclist.h"
#include "silcstack.h"
#include "silcmemory.h"
+#include "silcsnprintf.h"
/* Math library includes */
#include "silcmp.h"
#include "silcmath.h"
/* More SILC util library includes */
+#include "silctime.h"
+#include "silctimer.h"
+#include "silccond.h"
+#include "silcthread.h"
+#include "silcschedule.h"
+#include "silclog.h"
#include "silcbuffer.h"
#include "silcbuffmt.h"
+#include "silcasync.h"
+#include "silcdlist.h"
/* Crypto library includes */
+#include "silccrypto.h"
#include "silccipher.h"
#include "silchash.h"
#include "silchmac.h"
#include "silcpkcs.h"
#include "silcpk.h"
#include "silcpkcs1.h"
+#ifdef SILC_DIST_ACC
+#include "silcacc.h"
+#endif /* SILC_DIST_ACC */
+#ifdef SILC_DIST_SSH
+#include "silcssh.h"
+#endif /* SILC_DIST_SSH */
/* More SILC util library includes */
-#include "silctime.h"
-#include "silcmutex.h"
-#include "silcthread.h"
-#include "silcschedule.h"
+#include "silcenv.h"
+#include "silcdll.h"
#include "silchashtable.h"
-#include "silclog.h"
-#include "silclist.h"
-#include "silcdlist.h"
-#include "silcasync.h"
#include "silcstream.h"
#include "silcnet.h"
#include "silcfileutil.h"
+#include "silcbase64.h"
#include "silcstrutil.h"
#include "silcutf8.h"
#include "silcstringprep.h"
#include "silcfsm.h"
#include "silcsocketstream.h"
#include "silcfdstream.h"
-#include "silcvcard.h"
-#include "silcapputil.h"
#include "silcmime.h"
+#ifdef SILC_DIST_VCARD
+#include "silcvcard.h"
+#endif /* SILC_DIST_VCARD */
+
#ifdef SILC_DIST_ASN1
#include "silcasn1.h"
#include "silcber.h"
#include "silcargument.h"
#include "silcstatus.h"
#include "silcid.h"
-#include "silcidcache.h"
#include "silccommand.h"
+#include "silcauth.h"
#include "silcmessage.h"
#include "silcchannel.h"
#include "silcpacket.h"
#include "silcnotify.h"
#include "silcmode.h"
-#include "silcauth.h"
#include "silcattrs.h"
#include "silcpubkey.h"
+/* Application utility includes */
+#include "silcapputil.h"
+#ifdef SILC_DIST_IDCACHE
+#include "silcidcache.h"
+#endif /* SILC_DIST_IDCACHE */
+
#ifdef SILC_DIST_SKR
#include "silcskr.h"
#endif /* SILC_DIST_SKR */
#include "silcsftp_fs.h"
#endif /* SILC_DIST_SFTP */
+#ifdef SILC_DIST_HTTP
+/* SILC HTTP library */
+#include "silchttpserver.h"
+#include "silchttpphp.h"
+#endif /* SILC_DIST_HTTP */
+
#ifdef __cplusplus
}
#endif