X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=blobdiff_plain;f=config.h.in;h=60bf3227f63e34d6d1b6fba20b67b76afa7af05c;hp=c3b8502be13dd9ec9d12ae94416a09c5a8a3c72c;hb=5087664bd948fef71d47da4b64fee540fd493ce1;hpb=86683e9e9c61cb3f0164a1ffcf151ccefa8871df diff --git a/config.h.in b/config.h.in index c3b8502..60bf322 100644 --- a/config.h.in +++ b/config.h.in @@ -55,6 +55,9 @@ #undef HAVE_WCSCHR #undef HAVE_WCSDUP +/* Define if you have the open64 function. */ +#undef HAVE_OPEN64 + /* Define if you have the lrand48 function. */ #undef HAVE_LRAND48 @@ -79,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 @@ -271,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