X-Git-Url: http://git.silcnet.org/gitweb/?a=blobdiff_plain;f=includes%2Fsilc.h.in;fp=includes%2Fsilc.h.in;h=037bc3294dfae93a35b7eb317c05b57a2b205842;hb=cc696d0d065cbe8f397fec1f479973b855ddb4bf;hp=2e46a7e3f1f48d84039fc40ad900fdfa7ae7fb49;hpb=8659cc0ddbeca3a90b218ad991726a209e9e8a42;p=silc.git diff --git a/includes/silc.h.in b/includes/silc.h.in index 2e46a7e3..037bc329 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 */