Commit fa2a8210 authored by Jon Lech Johansen's avatar Jon Lech Johansen

  * Fixed some win32 compile issues.
  * Don't use long long, use u64/s64 (int_types.h).
parent 20e2160e
...@@ -3,7 +3,7 @@ ...@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions * Collection of useful common types and macros definitions
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.44 2001/10/31 11:55:53 reno Exp $ * $Id: common.h,v 1.45 2001/11/07 22:58:13 jlj Exp $
* *
* Authors: Samuel Hocevar <sam@via.ecp.fr> * Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -232,10 +232,6 @@ struct pgrm_descriptor_s; ...@@ -232,10 +232,6 @@ struct pgrm_descriptor_s;
#endif #endif
#if defined( WIN32 ) #if defined( WIN32 )
# ifndef _OFF_T_DEFINED
typedef __int64 off_t;
# define _OFF_T_DEFINED
# endif
# ifndef snprintf # ifndef snprintf
# define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ # define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */
# endif # endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* input_dummy.c: dummy input plugin, to manage "vlc:***" special options * input_dummy.c: dummy input plugin, to manage "vlc:***" special options
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: input_dummy.c,v 1.5 2001/08/09 08:20:26 sam Exp $ * $Id: input_dummy.c,v 1.6 2001/11/07 22:58:13 jlj Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -30,6 +30,7 @@ ...@@ -30,6 +30,7 @@
#include "defs.h" #include "defs.h"
#include <stdlib.h> #include <stdlib.h>
#include <sys/types.h>
#include <string.h> #include <string.h>
#include <errno.h> #include <errno.h>
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* aout_common.h: audio output inner functions * aout_common.h: audio output inner functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999, 2000, 2001 VideoLAN * Copyright (C) 1999, 2000, 2001 VideoLAN
* $Id: aout_common.h,v 1.5 2001/11/01 00:29:54 asmax Exp $ * $Id: aout_common.h,v 1.6 2001/11/07 22:58:13 jlj Exp $
* *
* Authors: Michel Kaempf <maxx@via.ecp.fr> * Authors: Michel Kaempf <maxx@via.ecp.fr>
* *
...@@ -79,7 +79,7 @@ static __inline__ int NextFrame( aout_thread_t * p_aout, aout_fifo_t * p_fifo, ...@@ -79,7 +79,7 @@ static __inline__ int NextFrame( aout_thread_t * p_aout, aout_fifo_t * p_fifo,
mtime_t aout_date ) mtime_t aout_date )
{ {
long l_units, l_rate; long l_units, l_rate;
long long l_delta; u64 l_delta;
/* We take the lock */ /* We take the lock */
vlc_mutex_lock( &p_fifo->data_lock ); vlc_mutex_lock( &p_fifo->data_lock );
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* decoders. * decoders.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: input.c,v 1.150 2001/11/06 17:12:02 massiot Exp $ * $Id: input.c,v 1.151 2001/11/07 22:58:13 jlj Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -47,15 +47,12 @@ ...@@ -47,15 +47,12 @@
#endif #endif
#ifdef WIN32 #ifdef WIN32
# include <winsock.h>
# include <winsock2.h> # include <winsock2.h>
#elif !defined( SYS_BEOS ) && !defined( SYS_NTO ) #elif !defined( SYS_BEOS ) && !defined( SYS_NTO )
# include <netdb.h> /* hostent ... */ # include <netdb.h> /* hostent ... */
# include <sys/socket.h> # include <sys/socket.h>
# include <netinet/in.h> # include <netinet/in.h>
# include <arpa/inet.h> # include <arpa/inet.h>
# include <sys/types.h>
# include <sys/socket.h>
#endif #endif
#ifdef HAVE_SYS_TIMES_H #ifdef HAVE_SYS_TIMES_H
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment