[Ffmpeg-devel] [PATCH] MingW RTSP support

Diego Biurrun diego
Sun Apr 2 00:07:15 CEST 2006


On Fri, Mar 31, 2006 at 06:46:25PM -0500, Rich Felker wrote:
> On Fri, Mar 31, 2006 at 01:15:59PM -0600, Michael A. Kohn wrote:
> > +#ifndef __MINGW32__
> >  #include <sys/socket.h>
> >  #include <netinet/in.h>
> > -#ifndef __BEOS__
> > -# include <arpa/inet.h>
> > -#else
> > +#include <netdb.h>
> > +#endif
> > +#ifdef __BEOS__
> >  # include "barpainet.h"
> > +#elif !defined(__MINGW32__)
> > +# include <arpa/inet.h>
> >  #endif
> > -#include <netdb.h>
> 
> This stuff is still unnecessary. Just add the missing headers to your
> mingw.

Why?  We use #ifdef to support different platforms in many places, this
looks pretty normal to me...

Diego





More information about the ffmpeg-devel mailing list