mirror of https://gerrit.osmocom.org/libtelnet
add C++ include wrappers
parent
4b3c7fd19a
commit
991f536edc
10
libtelnet.h
10
libtelnet.h
|
@ -14,6 +14,11 @@
|
|||
#if !defined(LIBTELNET_INCLUDE)
|
||||
#define LIBTELNET_INCLUDE 1
|
||||
|
||||
/* C++ support */
|
||||
#if defined(__cplusplus)
|
||||
extern "C" {
|
||||
#endif
|
||||
|
||||
/* printf type checking feature in GCC and some other compilers */
|
||||
#if __GNUC__
|
||||
# define TELNET_GNU_PRINTF(f,a) __attribute__((format(printf, f, a)))
|
||||
|
@ -235,4 +240,9 @@ extern void telnet_format_sb(telnet_t *telnet, unsigned char telopt,
|
|||
extern void telnet_send_zmp(telnet_t *telnet, size_t argc, const char **argv);
|
||||
extern void telnet_send_zmpv(telnet_t *telnet, ...) TELNET_GNU_SENTINEL;
|
||||
|
||||
/* C++ support */
|
||||
#if defined(__cplusplus)
|
||||
} /* extern "C" */
|
||||
#endif
|
||||
|
||||
#endif /* !defined(LIBTELNET_INCLUDE) */
|
||||
|
|
Loading…
Reference in New Issue