Compile the garbage collector and heap profiler as C++.
Change-Id: I25d8fa821987a3dd6d7109d07fd42dbf2fe0e589
diff --git a/vm/ReferenceTable.h b/vm/ReferenceTable.h
index f434f55..35bc61b 100644
--- a/vm/ReferenceTable.h
+++ b/vm/ReferenceTable.h
@@ -23,6 +23,10 @@
#ifndef _DALVIK_REFERENCETABLE
#define _DALVIK_REFERENCETABLE
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Table definition.
*
@@ -122,4 +126,8 @@
void dvmDumpReferenceTableContents(Object* const* refs, size_t count,
const char* descr);
+#ifdef __cplusplus
+}
+#endif
+
#endif /*_DALVIK_REFERENCETABLE*/