X-Git-Url: http://git.asbjorn.biz/?a=blobdiff_plain;f=lib%2Fmem.h;h=5214c761c3ecaefbb1acf8482f32c1d1f11ad18c;hb=e1b1d44814fded4b2c363b52bc905704feeb65be;hp=d7a4bfeb32343bf0e75d40576cdddb768ad70da8;hpb=03b598c965020825e9ffa88a8d32b8c1170f2419;p=swftools.git diff --git a/lib/mem.h b/lib/mem.h index d7a4bfe..5214c76 100644 --- a/lib/mem.h +++ b/lib/mem.h @@ -1,6 +1,10 @@ #ifndef __mem_h__ #define __mem_h__ +#ifdef __cplusplus +extern "C" { +#endif + #define ALLOC_ARRAY(type, num) (((type)*)rfxalloc(sizeof(type)*(num))) void* rfx_alloc(int size); void* rfx_calloc(int size); @@ -10,4 +14,9 @@ void rfx_free(void*data); long rfx_memory_used(); char* rfx_memory_used_str(); #endif + +#ifdef __cplusplus +} +#endif + #endif //__mem_h__