From 9fceeeae5795e77d617481d1845e9de83710b283 Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Mon, 23 Mar 2009 00:08:34 +0000 Subject: [PATCH] make json.h friendly to C++ --- libtransmission/json.h | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/libtransmission/json.h b/libtransmission/json.h index 44eca8ebd..517c77be1 100644 --- a/libtransmission/json.h +++ b/libtransmission/json.h @@ -12,9 +12,17 @@ #ifndef TR_JSON_H +#ifdef __cplusplus +extern "C" { +#endif + int tr_jsonParse( const void * vbuf, size_t len, struct tr_benc * setme_benc, const uint8_t ** setme_end ); +#ifdef __cplusplus +} +#endif + #endif