This commit introduces C++ support.
[cacao.git] / src / mm / memory.h
index 0d2c74b2957d2d84bc4d6f8a4e0e3cb5d153e53f..8a88321d38480fceaa3ebb1d34759a2b84952dd9 100644 (file)
 #ifndef _MEMORY_H
 #define _MEMORY_H
 
-
 #include "config.h"
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 #include <string.h>
 
 #include "vm/types.h"
@@ -144,6 +147,10 @@ void *mem_realloc(void *src, int32_t len1, int32_t len2);
 bool  memory_start_thread(void);
 #endif
 
+#ifdef __cplusplus
+}
+#endif
+
 #endif /* _MEMORY_H */