]> git.sesse.net Git - vlc/commitdiff
* VC++/Intel compiler fixes by Jon Lech Johansen <jon-vl@nanocrew.net>.
authorSam Hocevar <sam@videolan.org>
Mon, 30 Jul 2001 00:53:05 +0000 (00:53 +0000)
committerSam Hocevar <sam@videolan.org>
Mon, 30 Jul 2001 00:53:05 +0000 (00:53 +0000)
14 files changed:
ChangeLog
configure
configure.in
extras/libdvdcss/libdvdcss.c
include/common.h
plugins/directx/aout_directx.c
plugins/directx/vout_directx.c
plugins/directx/vout_events.c
plugins/dvd/dvd_netlist.c
plugins/dvd/input_dvd.c
plugins/mpeg/input_es.c
plugins/mpeg/input_ts.c
src/input/input_netlist.c
src/interface/main.c

index 02d85f582f4d059933c747d5e7e3e33a924a8c27..9ada21cd064e1f5b866f068c54642f6763bdbd9f 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -3,6 +3,7 @@
 #===================#
 
 HEAD
+  * VC++/Intel compiler fixes by Jon Lech Johansen <jon-vl@nanocrew.net>.
   * Better gtk-config detection.
   * Removed duplicate checks in configure.in.
   * Fixed a typo in vlc.spec.
index a04fefd23bc610601e2dbcb049174c78225cf66a..78f800821c6456b78a9a4bb8a4fa7858d3e347bc 100755 (executable)
--- a/configure
+++ b/configure
@@ -4038,11 +4038,12 @@ else
 fi
 
   SDL_HEADER="SDL/SDL.h"
-  if test x${SDL_CONFIG} = xno; then
+  if test x${SDL_CONFIG} = xno
+  then
     # Extract the first word of "sdl11-config", so it can be a program name with args.
 set dummy sdl11-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4046: checking for $ac_word" >&5
+echo "configure:4047: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_SDL11_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4078,11 +4079,12 @@ fi
     SDL_CONFIG=${SDL11_CONFIG}
     SDL_HEADER="SDL11/SDL.h"
   fi
-  if test x${SDL_CONFIG} = xno; then
+  if test x${SDL_CONFIG} = xno
+  then
     # Extract the first word of "sdl12-config", so it can be a program name with args.
 set dummy sdl12-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4086: checking for $ac_word" >&5
+echo "configure:4088: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_SDL12_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4118,22 +4120,23 @@ fi
     SDL_CONFIG=${SDL12_CONFIG}
     SDL_HEADER="SDL12/SDL.h"
   fi
-  if test x${SDL_CONFIG} != xno; then
+  if test x${SDL_CONFIG} != xno
+  then
     for ac_hdr in $SDL_HEADER
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4127: checking for $ac_hdr" >&5
+echo "configure:4130: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4132 "configure"
+#line 4135 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4137: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4140: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4162,7 +4165,7 @@ echo "The development package for SDL is not installed. Please install it"
 fi
 done
 
-    if expr 1.1.5 \> $($SDL_CONFIG --version) >/dev/null
+    if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
     then
       echo "You need SDL version 1.1.5 or later."
       exit
@@ -4193,17 +4196,17 @@ if test "${with_directx+set}" = set; then
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4197: checking for $ac_hdr" >&5
+echo "configure:4200: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4202 "configure"
+#line 4205 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4207: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4210: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4241,17 +4244,17 @@ fi
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4245: checking for $ac_hdr" >&5
+echo "configure:4248: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4250 "configure"
+#line 4253 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4255: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4357,7 +4360,7 @@ then
   # Extract the first word of "gtk-config", so it can be a program name with args.
 set dummy gtk-config; ac_word=$2
 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
-echo "configure:4361: checking for $ac_word" >&5
+echo "configure:4364: checking for $ac_word" >&5
 if eval "test \"`echo '$''{'ac_cv_path_GTK_CONFIG'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
@@ -4402,17 +4405,17 @@ fi
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4406: checking for $ac_hdr" >&5
+echo "configure:4409: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4411 "configure"
+#line 4414 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4416: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4419: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4463,17 +4466,17 @@ if test x$enable_x11 != xno; then
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4467: checking for $ac_hdr" >&5
+echo "configure:4470: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4472 "configure"
+#line 4475 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4477: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4480: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4525,17 +4528,17 @@ if test x$enable_xvideo != xno; then
 do
 ac_safe=`echo "$ac_hdr" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for $ac_hdr""... $ac_c" 1>&6
-echo "configure:4529: checking for $ac_hdr" >&5
+echo "configure:4532: checking for $ac_hdr" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4534 "configure"
+#line 4537 "configure"
 #include "confdefs.h"
 #include <$ac_hdr>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4539: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4542: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4575,17 +4578,17 @@ if test "${enable_alsa+set}" = set; then
    then
      ac_safe=`echo "sys/asoundlib.h" | sed 'y%./+-%__p_%'`
 echo $ac_n "checking for sys/asoundlib.h""... $ac_c" 1>&6
-echo "configure:4579: checking for sys/asoundlib.h" >&5
+echo "configure:4582: checking for sys/asoundlib.h" >&5
 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
 else
   cat > conftest.$ac_ext <<EOF
-#line 4584 "configure"
+#line 4587 "configure"
 #include "confdefs.h"
 #include <sys/asoundlib.h>
 EOF
 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
-{ (eval echo configure:4589: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
+{ (eval echo configure:4592: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
 ac_err=`grep -v '^ *+' conftest.out | grep -v "^conftest.${ac_ext}\$"`
 if test -z "$ac_err"; then
   rm -rf conftest*
@@ -4602,7 +4605,7 @@ fi
 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
   echo "$ac_t""yes" 1>&6
   echo $ac_n "checking for main in -lasound""... $ac_c" 1>&6
-echo "configure:4606: checking for main in -lasound" >&5
+echo "configure:4609: checking for main in -lasound" >&5
 ac_lib_var=`echo asound'_'main | sed 'y%./+-%__p_%'`
 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
   echo $ac_n "(cached) $ac_c" 1>&6
@@ -4610,14 +4613,14 @@ else
   ac_save_LIBS="$LIBS"
 LIBS="-lasound  $LIBS"
 cat > conftest.$ac_ext <<EOF
-#line 4614 "configure"
+#line 4617 "configure"
 #include "confdefs.h"
 
 int main() {
 main()
 ; return 0; }
 EOF
-if { (eval echo configure:4621: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
+if { (eval echo configure:4624: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest${ac_exeext}; then
   rm -rf conftest*
   eval "ac_cv_lib_$ac_lib_var=yes"
 else
index 99a40744e21b86bbec3a55cd54ab2941af5b2fb7..bb1e7ba3f2492d9218421dbe0cc528f1d984c93b 100644 (file)
@@ -529,22 +529,25 @@ if test "x$withval" != "xno"
 then
   AC_PATH_PROG(SDL_CONFIG, sdl-config, no)
   SDL_HEADER="SDL/SDL.h"
-  if test x${SDL_CONFIG} = xno; then
+  if test x${SDL_CONFIG} = xno
+  then
     AC_PATH_PROG(SDL11_CONFIG, sdl11-config, no)
     SDL_CONFIG=${SDL11_CONFIG}
     SDL_HEADER="SDL11/SDL.h"
   fi
-  if test x${SDL_CONFIG} = xno; then
+  if test x${SDL_CONFIG} = xno
+  then
     AC_PATH_PROG(SDL12_CONFIG, sdl12-config, no)
     SDL_CONFIG=${SDL12_CONFIG}
     SDL_HEADER="SDL12/SDL.h"
   fi
-  if test x${SDL_CONFIG} != xno; then
+  if test x${SDL_CONFIG} != xno
+  then
     AC_CHECK_HEADERS($SDL_HEADER, [],
        [ echo "The development package for SDL is not installed. Please install it"
          echo "and try again."
          exit ])
-    if expr 1.1.5 \> $($SDL_CONFIG --version) >/dev/null
+    if expr 1.1.5 \> `$SDL_CONFIG --version` >/dev/null
     then
       echo "You need SDL version 1.1.5 or later."
       exit
index af6f8e40ec5590769cd40cfe02352ac441169bcf..ade73a0ca823b1c41cd3683fef291536365e5a9a 100644 (file)
@@ -2,7 +2,7 @@
  * libdvdcss.c: DVD reading library.
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: libdvdcss.c,v 1.11 2001/07/28 02:17:37 sam Exp $
+ * $Id: libdvdcss.c,v 1.12 2001/07/30 00:53:04 sam Exp $
  *
  * Authors: Stéphane Borel <stef@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
@@ -38,8 +38,7 @@
 #endif
 
 #if defined( WIN32 )
-#   include <io.h>
-#   include "input_iovec.h"
+#   include <io.h>                                                 /* read() */
 #else
 #   include <sys/uio.h>                                      /* struct iovec */
 #endif
 #include "config.h"
 #include "common.h"
 
+#if defined( WIN32 )
+#   include "input_iovec.h"
+#endif
+
 #include "videolan/dvdcss.h"
 #include "libdvdcss.h"
 #include "ioctl.h"
@@ -807,7 +810,7 @@ static int _win32_dvdcss_aread( int i_fd, void *p_data, int i_blocks )
 
         /* transfer the next 64kb (_win32_dvdcss_aread is called recursively)
          * We need to check the status of the read on return */
-        if( _win32_dvdcss_aread( i_fd, p_data + 32 * DVDCSS_BLOCK_SIZE,
+        if( _win32_dvdcss_aread( i_fd, (u8*) p_data + 32 * DVDCSS_BLOCK_SIZE,
                                  i_blocks - 32) < 0 )
         {
             return -1;
index 289ab108d5850ee10851999e034ff930edee58e6..f9a106c8e7e5118623754f28df5ecb3ca83b5dd2 100644 (file)
@@ -3,7 +3,7 @@
  * Collection of useful common types and macros definitions
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: common.h,v 1.36 2001/07/08 17:45:51 gbazin Exp $
+ * $Id: common.h,v 1.37 2001/07/30 00:53:04 sam Exp $
  *
  * Authors: Samuel Hocevar <sam@via.ecp.fr>
  *          Vincent Seguin <seguin@via.ecp.fr>
@@ -207,13 +207,11 @@ struct pgrm_descriptor_s;
 #endif
 
 #if defined( WIN32 )
+#   ifndef _OFF_T_DEFINED
 typedef __int64 off_t;
-#ifndef snprintf
-#define snprintf _snprintf         /* snprintf not defined in mingw32 (bug?) */
-#endif
+#       define _OFF_T_DEFINED
+#   endif
+#   ifndef snprintf
+#       define snprintf _snprintf  /* snprintf not defined in mingw32 (bug?) */
+#   endif
 #endif
-
-
-
-
-
index 29f2ee3bb06865b8d9710d94881a0ae861a22c4b..61f4728a3bb7f08126d7d79212720a3df9dddd5d 100644 (file)
@@ -2,7 +2,7 @@
  * aout_directx.c: Windows DirectX audio output method
  *****************************************************************************
  * Copyright (C) 1999, 2000 VideoLAN
- * $Id: aout_directx.c,v 1.6 2001/07/25 08:41:21 gbazin Exp $
+ * $Id: aout_directx.c,v 1.7 2001/07/30 00:53:04 sam Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
 #include <errno.h>                                                 /* ENOMEM */
 #include <fcntl.h>                                       /* open(), O_WRONLY */
 #include <string.h>                                            /* strerror() */
-#include <unistd.h>                                      /* write(), close() */
+
+#ifdef HAVE_UNISTD_H
+#   include <unistd.h>                                   /* write(), close() */
+#endif
+
 #include <stdio.h>                                           /* "intf_msg.h" */
 #include <stdlib.h>                            /* calloc(), malloc(), free() */
 
 #include "mtime.h"
 #include "tests.h"
 
-#include "directx.h"
+#if defined( _MSC_VER )
+#   include <dsound.h>
+#else
+#   include "directx.h"
+#endif
 
 #include "audio_output.h"                                   /* aout_thread_t */
 
index c26d62e89e842d7c2b8b55bd23a816c7615a0d40..757a4f556d54807f7d5c6b3104074efe9233abec 100644 (file)
@@ -2,7 +2,7 @@
  * vout_directx.c: Windows DirectX video output display method
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vout_directx.c,v 1.8 2001/07/12 23:06:54 gbazin Exp $
+ * $Id: vout_directx.c,v 1.9 2001/07/30 00:53:04 sam Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
 
 #include <windows.h>
 #include <windowsx.h>
-#include <directx.h>
+
+#if defined( _MSC_VER )
+#   include <ddraw.h>
+#else
+#   include <directx.h>
+#endif
 
 #include "config.h"
 #include "common.h"
@@ -616,19 +621,19 @@ static void vout_Display( vout_thread_t *p_vout )
                    i_image_width/2);
 #else
             /* copy Y, we copy two lines at once */
-            memcpy(ddsd.lpSurface + i*2*ddsd.lPitch,
+            memcpy((u8*)ddsd.lpSurface + i*2*ddsd.lPitch,
                    p_vout->p_rendered_pic->p_y + i*2*i_image_width,
                    i_image_width);
-            memcpy(ddsd.lpSurface + (i*2+1)*ddsd.lPitch,
+            memcpy((u8*)ddsd.lpSurface + (i*2+1)*ddsd.lPitch,
                    p_vout->p_rendered_pic->p_y + (i*2+1)*i_image_width,
                    i_image_width);
             /* then V */
-            memcpy((ddsd.lpSurface + ddsd.dwHeight * ddsd.lPitch)
+            memcpy(((u8*)ddsd.lpSurface + ddsd.dwHeight * ddsd.lPitch)
                       + i * ddsd.lPitch/2,
                    p_vout->p_rendered_pic->p_v + i*i_image_width/2,
                    i_image_width/2);
             /* and U */
-            memcpy((ddsd.lpSurface + ddsd.dwHeight * ddsd.lPitch)
+            memcpy(((u8*)ddsd.lpSurface + ddsd.dwHeight * ddsd.lPitch)
                       + (ddsd.dwHeight * ddsd.lPitch/4)
                       + i * ddsd.lPitch/2,
                    p_vout->p_rendered_pic->p_u + i*i_image_width/2,
index bb44cc1f306b7e95f4a8dfb4460b97732bed115b..c2a31bc5ecf4602f773d51b4cf0ff18a4ac089bb 100644 (file)
@@ -2,7 +2,7 @@
  * vout_events.c: Windows DirectX video output events handler
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: vout_events.c,v 1.3 2001/07/25 08:41:21 gbazin Exp $
+ * $Id: vout_events.c,v 1.4 2001/07/30 00:53:04 sam Exp $
  *
  * Authors: Gildas Bazin <gbazin@netcourrier.com>
  *
 
 #include <windows.h>
 #include <windowsx.h>
-#include <directx.h>
+
+#if defined( _MSC_VER )
+#   include <ddraw.h>
+#else
+#   include <directx.h>
+#endif
 
 #include "intf_msg.h"
 #include "interface.h"
index cf863b70325a0a57ae3552eda11ca9466d3de4c7..b426096b8462d0153daf1210f5e13ee1ed71718b 100644 (file)
@@ -7,7 +7,7 @@
  * will only be given back to netlist when refcount is zero.
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000, 2001 VideoLAN
- * $Id: dvd_netlist.c,v 1.12 2001/07/17 09:48:07 massiot Exp $
+ * $Id: dvd_netlist.c,v 1.13 2001/07/30 00:53:05 sam Exp $
  *
  * Authors: Henri Fallon <henri@videolan.org>
  *          Stéphane Borel <stef@videolan.org>
@@ -41,8 +41,7 @@
 #endif
 
 #if defined( WIN32 )
-#   include <io.h>
-#   include "input_iovec.h"
+#   include <io.h>                                                 /* read() */
 #else
 #   include <sys/uio.h>                                      /* struct iovec */
 #endif
 #include "mtime.h"
 #include "intf_msg.h"                                           /* intf_*Msg */
 
+#if defined( WIN32 )
+#   include "input_iovec.h"
+#endif
+
 #include "stream_control.h"
 #include "input_ext-intf.h"
 #include "input_ext-dec.h"
index 5d6957a8231b52e580649c9da0d6c9a903b446f2..5a3b68f092a1d373049d90c8f47a57acd6539d42 100644 (file)
@@ -10,7 +10,7 @@
  *  -dvd_udf to find files
  *****************************************************************************
  * Copyright (C) 1998-2001 VideoLAN
- * $Id: input_dvd.c,v 1.81 2001/07/27 01:05:17 sam Exp $
+ * $Id: input_dvd.c,v 1.82 2001/07/30 00:53:05 sam Exp $
  *
  * Author: Stéphane Borel <stef@via.ecp.fr>
  *
@@ -54,8 +54,7 @@
 #endif
 
 #if defined( WIN32 )
-#   include <io.h>
-#   include "input_iovec.h"
+#   include <io.h>                                                 /* read() */
 #else
 #   include <sys/uio.h>                                      /* struct iovec */
 #endif
 #include "mtime.h"
 #include "tests.h"
 
+#if defined( WIN32 )
+#   include "input_iovec.h"
+#endif
+
 #include "intf_msg.h"
 
 #include "main.h"
index 0e8faeb0d262e1be5bbdd316cdce42bee0607b10..93d34f43777554bb9feeee9665b18f9a0ef30973 100644 (file)
@@ -2,7 +2,7 @@
  * input_es.c: Elementary Stream demux and packet management
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: input_es.c,v 1.8 2001/07/17 09:48:07 massiot Exp $
+ * $Id: input_es.c,v 1.9 2001/07/30 00:53:05 sam Exp $
  *
  * Author: Christophe Massiot <massiot@via.ecp.fr>
  *
 
 #ifdef HAVE_UNISTD_H
 #   include <unistd.h>
-#elif defined( _MSC_VER ) && defined( _WIN32 )
-#   include <io.h>
 #endif
 
 #include <fcntl.h>
 
 #if defined( WIN32 )
-#   include <io.h>
-#   include "input_iovec.h"
+#   include <io.h>                                                 /* read() */
 #else
 #   include <sys/uio.h>                                      /* struct iovec */
 #endif
 #include "mtime.h"
 #include "tests.h"
 
+#if defined( WIN32 )
+#   include "input_iovec.h"
+#endif
+
 #include "intf_msg.h"
 
 #include "main.h"
index ce5dee9e3cf4d8518003ed333d5285c0861f4fb7..8835f795bed775ac939e426a357bd1d617abb185 100644 (file)
@@ -2,7 +2,7 @@
  * input_ts.c: TS demux and netlist management
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: input_ts.c,v 1.30 2001/07/17 09:48:08 massiot Exp $
+ * $Id: input_ts.c,v 1.31 2001/07/30 00:53:05 sam Exp $
  *
  * Authors: Henri Fallon <henri@videolan.org>
  *
@@ -58,7 +58,6 @@
 #if defined( WIN32 )
 #   include <io.h>
 #   include <winsock2.h>
-#   include "input_iovec.h"
 #else
 #   include <sys/uio.h>                                      /* struct iovec */
 #endif
 #include "mtime.h"
 #include "tests.h"
 
+#if defined( WIN32 )
+#   include "input_iovec.h"
+#endif
+
 #include "intf_msg.h"
 
 #include "stream_control.h"
index d48e52ec2a01979632b3aff1cbcd706766fd35f6..938edb8fb1c6fd46128d527d4c92984093f46b6e 100644 (file)
@@ -2,7 +2,7 @@
  * input_netlist.c: netlist management
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: input_netlist.c,v 1.40 2001/07/17 09:48:08 massiot Exp $
+ * $Id: input_netlist.c,v 1.41 2001/07/30 00:53:05 sam Exp $
  *
  * Authors: Henri Fallon <henri@videolan.org>
  *
 #   include <unistd.h>
 #endif
 
-#if !defined( WIN32 )
-#   include <sys/uio.h>                                      /* struct iovec */
+#if defined( WIN32 )
+#   include <io.h>                                                 /* read() */
 #else
-#   include <io.h>
-#   include "input_iovec.h"
+#   include <sys/uio.h>                                      /* struct iovec */
 #endif
 
 #include "config.h"
 #include "mtime.h"
 #include "intf_msg.h"                                           /* intf_*Msg */
 
+#if defined( WIN32 )
+#   include "input_iovec.h"
+#endif
+
 #include "stream_control.h"
 #include "input_ext-intf.h"
 #include "input_ext-dec.h"
index 442955b40383024651abfbf317ad6edf41974312..f4305bad589b930f5900e2659de6d0a95dae0885 100644 (file)
@@ -4,7 +4,7 @@
  * and spawn threads.
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: main.c,v 1.108 2001/07/18 14:21:00 massiot Exp $
+ * $Id: main.c,v 1.109 2001/07/30 00:53:05 sam Exp $
  *
  * Authors: Vincent Seguin <seguin@via.ecp.fr>
  *          Samuel Hocevar <sam@zoy.org>
 #endif
 
 #ifndef WIN32
-#include <netinet/in.h>                               /* BSD: struct in_addr */
+#   include <netinet/in.h>                            /* BSD: struct in_addr */
 #endif
 
 #ifdef HAVE_UNISTD_H
-#include <unistd.h>
+#   include <unistd.h>
+#elif defined( _MSC_VER ) && defined( _WIN32 )
+#   include <io.h>
 #endif
 
 #include <errno.h>                                                 /* ENOMEM */