]> git.sesse.net Git - vlc/blobdiff - include/vlc_network.h
macosx: Make sure empty nodes are shown as node.
[vlc] / include / vlc_network.h
index 972090dd1e9d65c185ed95dfd004b47e274a9e7b..aca2b0a70498e9c721bae34ac3660a30e935d008 100644 (file)
  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston MA 02110-1301, USA.
  *****************************************************************************/
 
-#if !defined( __LIBVLC__ )
-  #error You are not libvlc or one of its plugins. You cannot include this file
-#endif
-
 #ifndef __VLC_NETWORK_H
 # define __VLC_NETWORK_H
 
@@ -40,7 +36,6 @@
 #   include <ws2tcpip.h>
 #   define ENETUNREACH WSAENETUNREACH
 #   define net_errno (WSAGetLastError())
-#   define AI_NUMERICSERV 0
 extern const char *net_strerror( int val );
 
 struct iovec
@@ -274,9 +269,8 @@ struct addrinfo
 #  define AI_NUMERICHOST 4
 # endif /* if !HAVE_STRUCT_ADDRINFO */
 
-/* Mac OS X doesn't define that one */
 #ifndef AI_NUMERICSERV
-#define AI_NUMERICSERV 0
+# define AI_NUMERICSERV 0
 #endif
 
 VLC_EXPORT( const char *, vlc_gai_strerror, ( int ) );