From: Abramo Bagnara Date: Mon, 29 Jan 2001 08:29:52 +0000 (+0000) Subject: Added stuff for C++ compilation X-Git-Tag: v1.0.3~1003 X-Git-Url: https://git.alsa-project.org/?a=commitdiff_plain;h=d44c657826db6ab36af488f767ea4a6ee809316b;p=alsa-lib.git Added stuff for C++ compilation --- diff --git a/include/input.h b/include/input.h index 2f4c2426..0925b75a 100644 --- a/include/input.h +++ b/include/input.h @@ -1,4 +1,8 @@ +#ifdef __cplusplus +extern "C" { +#endif + typedef struct _snd_input snd_input_t; typedef enum _snd_input_type { @@ -13,3 +17,7 @@ int snd_input_close(snd_input_t *input); int snd_input_scanf(snd_input_t *input, const char *format, ...) __attribute__ ((format (scanf, 2, 3))); char *snd_input_gets(snd_input_t *input, char *str, size_t size); int snd_input_getc(snd_input_t *input); + +#ifdef __cplusplus +} +#endif diff --git a/include/output.h b/include/output.h index dd50f9db..c2dbf742 100644 --- a/include/output.h +++ b/include/output.h @@ -1,4 +1,8 @@ +#ifdef __cplusplus +extern "C" { +#endif + typedef struct _snd_output snd_output_t; typedef enum _snd_output_type { @@ -15,3 +19,7 @@ int snd_output_printf(snd_output_t *output, const char *format, ...) __attribute int snd_output_puts(snd_output_t *output, const char *str); int snd_output_putc(snd_output_t *output, int c); int snd_output_flush(snd_output_t *output); + +#ifdef __cplusplus +} +#endif