aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--SSVLSystemAlertVolume.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/SSVLSystemAlertVolume.h b/SSVLSystemAlertVolume.h
index 135ea13..bcc1b46 100644
--- a/SSVLSystemAlertVolume.h
+++ b/SSVLSystemAlertVolume.h
@@ -11,6 +11,11 @@
#ifndef SSVLSystemAlertVolume_h
#define SSVLSystemAlertVolume_h
+#if defined(__cplusplus)
+extern "C"
+{
+#endif
+
#include <AudioToolbox/AudioToolbox.h>
#include <CoreFoundation/CoreFoundation.h>
@@ -28,4 +33,8 @@ OSStatus SSVLGetSystemVolume(Float32 *volume);
// Returns the result of `AudioServicesSetProperty`.
OSStatus SSVLSetSystemVolume(Float32 volume);
+#ifdef __cplusplus
+}
+#endif
+
#endif /* SSVLSystemAlertVolume_h */