From 9ca15eb1834be992ba26e492dbe9afdcc3f836db Mon Sep 17 00:00:00 2001 From: Charles Kerr Date: Wed, 25 Mar 2009 00:15:42 +0000 Subject: [PATCH] (trunk libT) wrap rpcimpl.h in 'namespace "C"' when #included from C++ --- libtransmission/rpcimpl.h | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/libtransmission/rpcimpl.h b/libtransmission/rpcimpl.h index 3f60a4f15..ee1083417 100644 --- a/libtransmission/rpcimpl.h +++ b/libtransmission/rpcimpl.h @@ -13,6 +13,10 @@ #ifndef TR_RPC_H #define TR_RPC_H +#ifdef __cplusplus +extern "C" { +#endif + /*** **** RPC processing ***/ @@ -41,5 +45,8 @@ void tr_rpc_parse_list_str( struct tr_benc * setme, const char * list_str, int list_str_len ); +#ifdef __cplusplus +} +#endif #endif