summaryrefslogtreecommitdiffstats
path: root/vm/Sync.h
diff options
context:
space:
mode:
Diffstat (limited to 'vm/Sync.h')
-rw-r--r--vm/Sync.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/vm/Sync.h b/vm/Sync.h
index 520366e23..a03948334 100644
--- a/vm/Sync.h
+++ b/vm/Sync.h
@@ -19,6 +19,10 @@
#ifndef _DALVIK_SYNC
#define _DALVIK_SYNC
+#ifdef __cplusplus
+extern "C" {
+#endif
+
/*
* Monitor shape field. Used to distinguish immediate thin locks from
* indirecting fat locks.
@@ -157,4 +161,8 @@ bool dvmHoldsLock(struct Thread* thread, struct Object* obj);
int dvmRelativeCondWait(pthread_cond_t* cond, pthread_mutex_t* mutex,
s8 msec, s4 nsec);
+#ifdef __cplusplus
+}
+#endif
+
#endif /*_DALVIK_SYNC*/