[FFmpeg-cvslog] r11073 - in trunk/libavformat: avformat.h os_support.c tcp.c udp.c

lucabe subversion
Wed Nov 21 17:33:07 CET 2007


Author: lucabe
Date: Wed Nov 21 17:33:06 2007
New Revision: 11073

Log:
Include os_support.h only when needed


Modified:
   trunk/libavformat/avformat.h
   trunk/libavformat/os_support.c
   trunk/libavformat/tcp.c
   trunk/libavformat/udp.c

Modified: trunk/libavformat/avformat.h
==============================================================================
--- trunk/libavformat/avformat.h	(original)
+++ trunk/libavformat/avformat.h	Wed Nov 21 17:33:06 2007
@@ -890,8 +890,6 @@ int avf_sdp_create(AVFormatContext *ac[]
 
 #ifdef HAVE_AV_CONFIG_H
 
-#include "os_support.h"
-
 void __dynarray_add(unsigned long **tab_ptr, int *nb_ptr, unsigned long elem);
 
 #ifdef __GNUC__

Modified: trunk/libavformat/os_support.c
==============================================================================
--- trunk/libavformat/os_support.c	(original)
+++ trunk/libavformat/os_support.c	Wed Nov 21 17:33:06 2007
@@ -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

Modified: trunk/libavformat/tcp.c
==============================================================================
--- trunk/libavformat/tcp.c	(original)
+++ trunk/libavformat/tcp.c	Wed Nov 21 17:33:06 2007
@@ -21,6 +21,7 @@
 #include "avformat.h"
 #include <unistd.h>
 #include "network.h"
+#include "os_support.h"
 #include <sys/time.h>
 
 typedef struct TCPContext {

Modified: trunk/libavformat/udp.c
==============================================================================
--- trunk/libavformat/udp.c	(original)
+++ trunk/libavformat/udp.c	Wed Nov 21 17:33:06 2007
@@ -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




More information about the ffmpeg-cvslog mailing list