X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=config.h.in;h=60bf3227f63e34d6d1b6fba20b67b76afa7af05c;hp=72c6e5674d7436ffea3a4acee2961534d620cabe;hb=c63b2bf21dc1df9a736f0b4c08f6cba828cdab92;hpb=5efcb6288e64cdc160c5456c4cb6ddd0a0bb16cc diff --git a/config.h.in b/config.h.in index 72c6e56..60bf322 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,22 @@ #endif #endif +#ifndef WIN32 +#define CHECKS +#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