changeset 2773:13b65f62e3a6 libavformat

Include os_support.h only when needed
author lucabe
date Wed, 21 Nov 2007 16:33:06 +0000
parents b43dc2901f83
children 477419a721a3
files avformat.h os_support.c tcp.c udp.c
diffstat 4 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/avformat.h	Wed Nov 21 10:26:11 2007 +0000
+++ b/avformat.h	Wed Nov 21 16:33:06 2007 +0000
@@ -890,8 +890,6 @@
 
 #ifdef HAVE_AV_CONFIG_H
 
-#include "os_support.h"
-
 void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem);
 
 #ifdef __GNUC__
--- a/os_support.c	Wed Nov 21 10:26:11 2007 +0000
+++ b/os_support.c	Wed Nov 21 16:33:06 2007 +0000
@@ -23,6 +23,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include <fcntl.h>
+#include "os_support.h"
 
 #ifndef HAVE_SYS_POLL_H
 #ifdef HAVE_WINSOCK2_H
--- a/tcp.c	Wed Nov 21 10:26:11 2007 +0000
+++ b/tcp.c	Wed Nov 21 16:33:06 2007 +0000
@@ -21,6 +21,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include "network.h"
+#include "os_support.h"
 #include <sys/time.h>
 
 typedef struct TCPContext {
--- a/udp.c	Wed Nov 21 10:26:11 2007 +0000
+++ b/udp.c	Wed Nov 21 16:33:06 2007 +0000
@@ -21,6 +21,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include "network.h"
+#include "os_support.h"
 
 #ifndef IPV6_ADD_MEMBERSHIP
 #define IPV6_ADD_MEMBERSHIP IPV6_JOIN_GROUP