diff options
author | Teddy Wing | 2022-10-27 19:52:07 +0200 |
---|---|---|
committer | Teddy Wing | 2022-10-27 19:52:07 +0200 |
commit | 65efc01ff90ca457a7655824765f4ed473672a00 (patch) | |
tree | a979ff1de1f43bd0b18a92e47af7edbd59659480 | |
parent | 3a5f23b0e1c90c02c356fdcb0c190fd64eeca3f1 (diff) | |
download | SSVLSystemAlertVolume-65efc01ff90ca457a7655824765f4ed473672a00.tar.bz2 |
SSVLSystemAlertVolume.h: Add C++ extern C
Facilitate importing from C++.
-rw-r--r-- | SSVLSystemAlertVolume.h | 9 |
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 */ |