aboutsummaryrefslogtreecommitdiffstats
path: root/include/uintmap.h
diff options
context:
space:
mode:
Diffstat (limited to 'include/uintmap.h')
-rw-r--r--include/uintmap.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/include/uintmap.h b/include/uintmap.h
index 611ed39b..2c4c5e7a 100644
--- a/include/uintmap.h
+++ b/include/uintmap.h
@@ -4,6 +4,10 @@
#include "AL/al.h"
#include "rwlock.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct UIntMap {
struct {
ALuint key;
@@ -32,4 +36,8 @@ inline void LockUIntMapWrite(UIntMap *map)
inline void UnlockUIntMapWrite(UIntMap *map)
{ WriteUnlock(&map->lock); }
+#ifdef __cplusplus
+}
+#endif
+
#endif /* AL_UINTMAP_H */