git.asbjorn.biz
/
swftools.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3bb2dc0
)
added __cplusplus handling
author
kramm
<kramm>
Mon, 5 Jun 2006 07:52:20 +0000
(07:52 +0000)
committer
kramm
<kramm>
Mon, 5 Jun 2006 07:52:20 +0000
(07:52 +0000)
lib/mem.h
patch
|
blob
|
history
diff --git
a/lib/mem.h
b/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__