X-Git-Url: http://git.silcnet.org/gitweb/?p=crypto.git;a=blobdiff_plain;f=includes%2Fsilc.h.in;h=669c1343c375d0bcdc4352a20f12be5acfb4f528;hp=2e46a7e3f1f48d84039fc40ad900fdfa7ae7fb49;hb=38b10925eeea619c2b6fa646892df4416e6dd08f;hpb=863c5cd04a1bc1f41d3b793457c2169f5a617c16 diff --git a/includes/silc.h.in b/includes/silc.h.in index 2e46a7e3..669c1343 100644 --- a/includes/silc.h.in +++ b/includes/silc.h.in @@ -67,6 +67,7 @@ extern "C" { @__SILC_ENABLE_DEBUG@ #if defined(HAVE_SILCDEFS_H) + /* Automatically generated configuration header */ #ifndef SILC_SYMBIAN #include "silcdefs.h" @@ -74,6 +75,37 @@ extern "C" { #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 */ @@ -126,14 +158,6 @@ extern "C" { #include #endif -#if defined(HAVE_GETOPT_H) && defined(HAVE_GETOPT) -#include -#else -#if defined(HAVE_SILCDEFS_H) -#include "getopti.h" -#endif /* HAVE_SILCDEFS_H */ -#endif - #ifdef SOCKS5 #include "socks.h" #endif @@ -171,14 +195,6 @@ extern "C" { #include #endif -#ifndef HAVE_REGEX_H -#if defined(HAVE_SILCDEFS_H) -#include "regexpr.h" -#endif /* HAVE_SILCDEFS_H */ -#else -#include -#endif - #ifdef SILC_HAVE_PTHREAD #include #endif @@ -214,12 +230,15 @@ extern "C" { #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" @@ -236,6 +255,7 @@ extern "C" { #include "silcthread.h" #include "silcschedule.h" #include "silclog.h" +#include "silcfileutil.h" #include "silcbuffer.h" #include "silcbuffmt.h" #include "silcasync.h" @@ -258,12 +278,12 @@ extern "C" { #endif /* SILC_DIST_SSH */ /* More SILC util library includes */ +#include "silcregex.h" #include "silcenv.h" #include "silcdll.h" #include "silchashtable.h" #include "silcstream.h" #include "silcnet.h" -#include "silcfileutil.h" #include "silcbase64.h" #include "silcstrutil.h" #include "silcutf8.h" @@ -273,9 +293,12 @@ extern "C" { #include "silcfsm.h" #include "silcsocketstream.h" #include "silcfdstream.h" -#include "silcvcard.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"