summaryrefslogtreecommitdiffstats
path: root/vm/alloc/HeapDebug.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/alloc/HeapDebug.h')
-rw-r--r--vm/alloc/HeapDebug.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm/alloc/HeapDebug.h b/vm/alloc/HeapDebug.h
index f36b7abf0..3dd1d5429 100644
--- a/vm/alloc/HeapDebug.h
+++ b/vm/alloc/HeapDebug.h
@@ -16,6 +16,10 @@
#ifndef _DALVIK_HEAPDEBUG
#define _DALVIK_HEAPDEBUG
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef enum HeapDebugInfoType {
kVirtualHeapSize = 0,
kNativeHeapSize = 1,
@@ -29,4 +33,8 @@ typedef enum HeapDebugInfoType {
*/
int dvmGetHeapDebugInfo(HeapDebugInfoType info);
+#ifdef __cplusplus
+}
+#endif
+
#endif // _DALVIK_HEAPDEBUG