From 608c6b4c741f4f26258e7158c922b1215b855f25 Mon Sep 17 00:00:00 2001 From: kramm Date: Mon, 5 Jun 2006 07:52:20 +0000 Subject: [PATCH] added __cplusplus handling --- lib/mem.h | 9 +++++++++ 1 file changed, 9 insertions(+) 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__ -- 1.7.10.4