aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/backends/base.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/backends/base.h')
-rw-r--r--Alc/backends/base.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/backends/base.h b/Alc/backends/base.h
index b05523b2..6940a2a2 100644
--- a/Alc/backends/base.h
+++ b/Alc/backends/base.h
@@ -5,6 +5,10 @@
#include "threads.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
typedef struct ClockLatency {
ALint64 ClockTime;
ALint64 Latency;
@@ -157,4 +161,8 @@ inline void ALCdevice_Lock(ALCdevice *device)
inline void ALCdevice_Unlock(ALCdevice *device)
{ V0(device->Backend,unlock)(); }
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* AL_BACKENDS_BASE_H */