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