#define _LOCK_COMMON_H
#include "config.h"
+
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#include "vm/types.h"
#include "vm/global.h"
#if defined(ENABLE_THREADS)
-# include "threads/native/lock.h"
+# include "threads/posix/lock.h"
#else
# include "threads/none/lock.h"
#endif
#endif /* ENABLE_THREADS */
+#ifdef __cplusplus
+}
+#endif
+
#endif /* _LOCK_COMMON_H */