summaryrefslogtreecommitdiffstats
path: root/vm/Native.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/Native.h')
-rw-r--r--vm/Native.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm/Native.h b/vm/Native.h
index f60ccce67..7599bcc31 100644
--- a/vm/Native.h
+++ b/vm/Native.h
@@ -22,6 +22,10 @@
#ifndef _DALVIK_NATIVE
#define _DALVIK_NATIVE
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Method description; equivalent to a JNI struct.
*/
@@ -119,4 +123,8 @@ void dvmLogNativeMethodEntry(const Method* method, const u4* newFp);
void dvmLogNativeMethodExit(const Method* method, struct Thread* self,
const JValue retval);
+#ifdef __cplusplus
+}
+#endif
+
#endif /*_DALVIK_NATIVE*/