added __cplusplus handling
authorkramm <kramm>
Mon, 5 Jun 2006 07:52:20 +0000 (07:52 +0000)
committerkramm <kramm>
Mon, 5 Jun 2006 07:52:20 +0000 (07:52 +0000)
lib/mem.h

index d7a4bfe..5214c76 100644 (file)
--- 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__