From 65efc01ff90ca457a7655824765f4ed473672a00 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 27 Oct 2022 19:52:07 +0200 Subject: SSVLSystemAlertVolume.h: Add C++ extern C Facilitate importing from C++. --- SSVLSystemAlertVolume.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'SSVLSystemAlertVolume.h') 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 #include @@ -28,4 +33,8 @@ OSStatus SSVLGetSystemVolume(Float32 *volume); // Returns the result of `AudioServicesSetProperty`. OSStatus SSVLSetSystemVolume(Float32 volume); +#ifdef __cplusplus +} +#endif + #endif /* SSVLSystemAlertVolume_h */ -- cgit v1.2.3