aboutsummaryrefslogtreecommitdiffstats
path: root/include/uintmap.h
diff options
context:
space:
mode:
authorChris Robinson <[email protected]>2014-05-29 04:22:30 -0700
committerChris Robinson <[email protected]>2014-05-29 04:22:30 -0700
commit1d45c439b83565699a1fc220dc7f34c9ceb11a7e (patch)
tree2a1e92e023d270a30da1dc1b06b3bdb205fe6462 /include/uintmap.h
parent73614f228eda86e9dc074540989a11a4fd7fb9e9 (diff)
Add extern "C" to common headers.
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 */