From 429024116308e0d85ac543ebca8d5cc1a6382408 Mon Sep 17 00:00:00 2001 From: Maxim Biro Date: Tue, 7 Oct 2014 00:49:28 -0400 Subject: [PATCH] Made toxdns header cpp-friendly --- toxdns/toxdns.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/toxdns/toxdns.h b/toxdns/toxdns.h index 90b74281..06071b82 100644 --- a/toxdns/toxdns.h +++ b/toxdns/toxdns.h @@ -24,6 +24,10 @@ #ifndef TOXDNS_H #define TOXDNS_H +#ifdef __cplusplus +extern "C" { +#endif + #include /* Clients are encouraged to set this as the maximum length names can have. */ @@ -85,4 +89,8 @@ int tox_generate_dns3_string(void *dns3_object, uint8_t *string, uint16_t string int tox_decrypt_dns3_TXT(void *dns3_object, uint8_t *tox_id, uint8_t *id_record, uint32_t id_record_len, uint32_t request_id); +#ifdef __cplusplus +} +#endif + #endif