Merge to subtype-trunk (manually: src/vm/linker.hpp, src/vm/vftbl.hpp)
[cacao.git] / src / mm / tlh.h
index 884d16eb73656830b8aaa92f7f2b1c8e4fada46f..6a6eab8afbeafd529563b21c58e5522a65f33c96 100644 (file)
    along with this program; if not, write to the Free Software
    Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA
    02110-1301, USA.
+
 */
 
+
+#ifndef _MM_TLH_H
+#define _MM_TLH_H
+
+#include "config.h"
+
 #include <stddef.h>
 #include <stdint.h>
 
@@ -32,6 +39,10 @@ typedef struct {
        unsigned overflows;
 } tlh_t;
 
+#ifdef __cplusplus
+extern "C" {
+#endif
+
 void tlh_init(tlh_t *tlh);
 
 void tlh_destroy(tlh_t *tlh);
@@ -42,6 +53,12 @@ void tlh_remove_frame(tlh_t *tlh);
 
 void *tlh_alloc(tlh_t *tlh, size_t size);
 
+#ifdef __cplusplus
+}
+#endif
+
+#endif
+
 /*
  * These are local overrides for various environment variables in Emacs.
  * Please do not remove this and leave it at the end of the file, where