From: Florian Forster Date: Wed, 25 Nov 2009 16:21:44 +0000 (+0100) Subject: src/routeros_api.h: Add «extern "C"» for C++ programs. X-Git-Tag: librouteros-0.1.0~11 X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=4d3c559e17352a65586a77cbbea588fb8ad5e17a;p=routeros-api.git src/routeros_api.h: Add «extern "C"» for C++ programs. --- diff --git a/src/routeros_api.h b/src/routeros_api.h index bdd1839..84e5600 100644 --- a/src/routeros_api.h +++ b/src/routeros_api.h @@ -24,6 +24,10 @@ #define ROUTEROS_API_PORT "8728" +#ifdef __cplusplus +extern "C" { +#endif + struct ros_connection_s; typedef struct ros_connection_s ros_connection_t; @@ -63,6 +67,10 @@ const char *ros_reply_param_val_by_index (const ros_reply_t *r, unsigned int index); const char *ros_reply_param_val_by_key (const ros_reply_t *r, const char *key); +#ifdef __cplusplus +} +#endif + #endif /* ROUTEROS_API_H */ /* vim: set ts=2 sw=2 noet fdm=marker : */