]> git.sesse.net Git - vlc/commitdiff
* include/network.h: fixed compilation with c++ files.
authorGildas Bazin <gbazin@videolan.org>
Wed, 24 Aug 2005 19:49:47 +0000 (19:49 +0000)
committerGildas Bazin <gbazin@videolan.org>
Wed, 24 Aug 2005 19:49:47 +0000 (19:49 +0000)
include/network.h

index 52368f1cbf854f6b84acd402a6ec658a3181b08d..81626f453320c94cce884fedf93b617e378bd7a0 100644 (file)
@@ -47,6 +47,9 @@
 #   include <netdb.h>
 #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