X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmem.h;h=a9635001d9be0cf73b5222a141488bc361451735;hb=021eda01dd273614ec1bb0cc0cabfcebfcdb0680;hp=5214c761c3ecaefbb1acf8482f32c1d1f11ad18c;hpb=608c6b4c741f4f26258e7158c922b1215b855f25;p=swftools.git diff --git a/lib/mem.h b/lib/mem.h index 5214c76..a963500 100644 --- a/lib/mem.h +++ b/lib/mem.h @@ -5,11 +5,16 @@ extern "C" { #endif +#include "../config.h" + #define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num))) void* rfx_alloc(int size); void* rfx_calloc(int size); void* rfx_realloc(void*data, int size); void rfx_free(void*data); +#ifndef HAVE_CALLOC +void* rfx_calloc_replacement(int nmemb, int size) +#endif #ifdef MEMORY_INFO long rfx_memory_used(); char* rfx_memory_used_str();