diff options
-rw-r--r-- | include/tinyalsa/asoundlib.h | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/include/tinyalsa/asoundlib.h b/include/tinyalsa/asoundlib.h index 7b13c0d..8395766 100644 --- a/include/tinyalsa/asoundlib.h +++ b/include/tinyalsa/asoundlib.h @@ -31,6 +31,10 @@ #include <sys/time.h> +#if defined(__cplusplus) +extern "C" { +#endif + /* * PCM API */ @@ -149,4 +153,8 @@ int mixer_ctl_set_enum_by_string(struct mixer_ctl *ctl, const char *string); int mixer_ctl_get_range_min(struct mixer_ctl *ctl); int mixer_ctl_get_range_max(struct mixer_ctl *ctl); +#if defined(__cplusplus) +} /* extern "C" */ +#endif + #endif |