aboutsummaryrefslogtreecommitdiffstats
path: root/Alc/compat.h
diff options
context:
space:
mode:
Diffstat (limited to 'Alc/compat.h')
-rw-r--r--Alc/compat.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/Alc/compat.h b/Alc/compat.h
index 6cf2d0d2..093184c8 100644
--- a/Alc/compat.h
+++ b/Alc/compat.h
@@ -3,6 +3,10 @@
#include "alstring.h"
+#ifdef __cplusplus
+extern "C" {
+#endif
+
#ifdef _WIN32
#define WIN32_LEAN_AND_MEAN
@@ -54,4 +58,8 @@ void *GetSymbol(void *handle, const char *name);
void *Android_GetJNIEnv(void);
#endif
+#ifdef __cplusplus
+} /* extern "C" */
+#endif
+
#endif /* AL_COMPAT_H */