aboutsummaryrefslogtreecommitdiffstats
path: root/include/rwlock.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/rwlock.h')
-rw-r--r--include/rwlock.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/rwlock.h b/include/rwlock.h
index c3a275e6..03482515 100644
--- a/include/rwlock.h
+++ b/include/rwlock.h
@@ -4,6 +4,10 @@
#include "bool.h"
#include "atomic.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct {
RefCount read_count;
RefCount write_count;
@@ -19,4 +23,8 @@ void ReadUnlock(RWLock *lock);
void WriteLock(RWLock *lock);
void WriteUnlock(RWLock *lock);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* AL_RWLOCK_H */