summaryrefslogtreecommitdiffstats
path: root/common/mutex.h
diff options
context:
space:
mode:
Diffstat (limited to 'common/mutex.h')
-rw-r--r--common/mutex.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/common/mutex.h b/common/mutex.h
index a2d35dec..6789b8f4 100644
--- a/common/mutex.h
+++ b/common/mutex.h
@@ -18,6 +18,11 @@
#ifndef _H_MUTEX
#define _H_MUTEX
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef _WIN32
#include <windows.h>
typedef CRITICAL_SECTION mutex_t;
@@ -32,4 +37,8 @@ typedef pthread_mutex_t mutex_t;
#define MUTEX_UNLOCK(mutex) pthread_mutex_unlock(&mutex)
#endif
+#ifdef __cplusplus
+}
+#endif
+
#endif // _H_MUTEX