From: kramm Date: Mon, 5 Jun 2006 07:52:20 +0000 (+0000) Subject: added __cplusplus handling X-Git-Tag: release-0-8-0~193 X-Git-Url: http://git.asbjorn.biz/?p=swftools.git;a=commitdiff_plain;h=608c6b4c741f4f26258e7158c922b1215b855f25 added __cplusplus handling --- 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__