X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;ds=sidebyside;f=config.h.in;h=9f122a030dca41e0ddab17f7b37b6f624392d905;hb=a9634f803811f39e67114955c3e9c30ae247a669;hp=72c6e5674d7436ffea3a4acee2961534d620cabe;hpb=5efcb6288e64cdc160c5456c4cb6ddd0a0bb16cc;p=swftools.git diff --git a/config.h.in b/config.h.in index 72c6e56..9f122a0 100644 --- a/config.h.in +++ b/config.h.in @@ -82,6 +82,9 @@ /* Define if you have the srand48 function. */ #undef HAVE_SRAND48 +/* Define if you have the calloc function. */ +#undef HAVE_CALLOC + /* Define if you have the stat function. */ #undef HAVE_STAT @@ -274,4 +277,18 @@ #endif #endif +// supply a substitute calloc function if necessary +#ifndef HAVE_CALLOC +#define calloc rfx_calloc_replacement +#endif + +//#ifdef HAVE_BUILTIN_EXPECT +#if defined(__GNUC__) && (__GNUC__ > 2) && defined(__OPTIMIZE__) +# define likely(x) __builtin_expect((x), 1) +# define unlikely(x) __builtin_expect((x), 0) +#else +# define likely(x) (x) +# define unlikely(x) (x) +#endif + #endif