From: Gildas Bazin Date: Wed, 24 Aug 2005 19:49:47 +0000 (+0000) Subject: * include/network.h: fixed compilation with c++ files. X-Git-Tag: 0.8.4~667 X-Git-Url: https://git.sesse.net/?a=commitdiff_plain;h=3ec75772d726c2ecea882aafcda431c5ed601efa;p=vlc * include/network.h: fixed compilation with c++ files. --- diff --git a/include/network.h b/include/network.h index 52368f1cbf..81626f4533 100644 --- a/include/network.h +++ b/include/network.h @@ -47,6 +47,9 @@ # include #endif +# ifdef __cplusplus +extern "C" { +# endif /***************************************************************************** * network_socket_t: structure passed to a network plug-in to define the @@ -551,4 +554,8 @@ static inline int net_GetPeerAddress( int fd, char *address, int *port ) ? VLC_EGENERIC : 0; } +# ifdef __cplusplus +} +# endif + #endif