Fabio Berton | efa5849 | 2015-10-26 13:22:07 -0200 | [diff] [blame] | 1 | Upstream-Status: Inappropriate [configuration] |
| 2 | |
| 3 | Subject: [PATCH 2/5] Add defines to c++ |
| 4 | Organization: O.S. Systems Software LTDA. |
| 5 | |
| 6 | Signed-off-by: Fabio Berton <fabio.berton@ossystems.com.br> |
| 7 | --- |
| 8 | inc/gsm.h | 8 ++++++++ |
| 9 | 1 file changed, 8 insertions(+) |
| 10 | |
| 11 | diff --git a/inc/gsm.h b/inc/gsm.h |
| 12 | index 4714ab6..eb2d5e7 100644 |
| 13 | --- a/inc/gsm.h |
| 14 | +++ b/inc/gsm.h |
| 15 | @@ -54,6 +54,10 @@ typedef gsm_byte gsm_frame[33]; /* 33 * 8 bits */ |
| 16 | #define GSM_OPT_FRAME_INDEX 5 |
| 17 | #define GSM_OPT_FRAME_CHAIN 6 |
| 18 | |
| 19 | +#ifdef __cplusplus |
| 20 | +extern "C" { |
| 21 | +#endif |
| 22 | + |
| 23 | extern gsm gsm_create GSM_P((void)); |
| 24 | extern void gsm_destroy GSM_P((gsm)); |
| 25 | |
| 26 | @@ -66,6 +70,10 @@ extern int gsm_decode GSM_P((gsm, gsm_byte *, gsm_signal *)); |
| 27 | extern int gsm_explode GSM_P((gsm, gsm_byte *, gsm_signal *)); |
| 28 | extern void gsm_implode GSM_P((gsm, gsm_signal *, gsm_byte *)); |
| 29 | |
| 30 | +#ifdef __cplusplus |
| 31 | +} |
| 32 | +#endif |
| 33 | + |
| 34 | #undef GSM_P |
| 35 | |
| 36 | #endif /* GSM_H */ |
| 37 | -- |
| 38 | 2.1.4 |
| 39 | |