Commit 97d84d1a authored by Gildas Bazin's avatar Gildas Bazin

ALL: MSVC compilation fixes to libvlc.

parent 6e4faeb0
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* variables.h: variables handling * variables.h: variables handling
***************************************************************************** *****************************************************************************
* Copyright (C) 2002 VideoLAN * Copyright (C) 2002 VideoLAN
* $Id: variables.h,v 1.18 2003/10/29 01:33:27 gbazin Exp $ * $Id: variables.h,v 1.19 2003/12/02 12:57:35 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -255,7 +255,7 @@ static inline int __var_SetInteger( vlc_object_t *p_obj, const char *psz_name, i ...@@ -255,7 +255,7 @@ static inline int __var_SetInteger( vlc_object_t *p_obj, const char *psz_name, i
* \param psz_name The name of the variable * \param psz_name The name of the variable
* \param i The new time value of this variable * \param i The new time value of this variable
*/ */
static inline int __var_SetTime( vlc_object_t *p_obj, const char *psz_name, signed long long i ) static inline int __var_SetTime( vlc_object_t *p_obj, const char *psz_name, int64_t i )
{ {
vlc_value_t val; vlc_value_t val;
val.i_time = i; val.i_time = i;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* vlc.h: global header for vlc * vlc.h: global header for vlc
***************************************************************************** *****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN * Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: vlc.h,v 1.27 2003/09/20 19:37:53 hartman Exp $ * $Id: vlc.h,v 1.28 2003/12/02 12:57:35 gbazin Exp $
* *
* This program is free software; you can redistribute it and/or modify * This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by * it under the terms of the GNU General Public License as published by
...@@ -42,7 +42,12 @@ typedef union ...@@ -42,7 +42,12 @@ typedef union
void * p_address; void * p_address;
vlc_object_t * p_object; vlc_object_t * p_object;
vlc_list_t * p_list; vlc_list_t * p_list;
#if defined( WIN32 ) && !defined( __MINGW32__ )
signed __int64 i_time;
# else
signed long long i_time; signed long long i_time;
#endif
struct { char *psz_name; int i_object_id; } var; struct { char *psz_name; int i_object_id; } var;
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* es_out.c: Es Out handler for input. * es_out.c: Es Out handler for input.
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: es_out.c,v 1.5 2003/11/30 17:29:56 fenrir Exp $ * $Id: es_out.c,v 1.6 2003/12/02 12:57:35 gbazin Exp $
* *
* Authors: Laurent Aimar <fenrir@via.ecp.fr> * Authors: Laurent Aimar <fenrir@via.ecp.fr>
* *
...@@ -228,7 +228,7 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt ) ...@@ -228,7 +228,7 @@ static es_out_id_t *EsOutAdd( es_out_t *out, es_format_t *fmt )
input_thread_t *p_input = p_sys->p_input; input_thread_t *p_input = p_sys->p_input;
es_out_id_t *es = malloc( sizeof( es_out_id_t ) ); es_out_id_t *es = malloc( sizeof( es_out_id_t ) );
pgrm_descriptor_t *p_prgm = NULL; pgrm_descriptor_t *p_prgm = NULL;
char psz_cat[strlen( "Stream " ) + 10]; char psz_cat[sizeof( "Stream " ) + 10];
input_info_category_t *p_cat; input_info_category_t *p_cat;
vlc_mutex_lock( &p_input->stream.stream_lock ); vlc_mutex_lock( &p_input->stream.stream_lock );
......
...@@ -4,7 +4,7 @@ ...@@ -4,7 +4,7 @@
* decoders. * decoders.
***************************************************************************** *****************************************************************************
* Copyright (C) 1998-2002 VideoLAN * Copyright (C) 1998-2002 VideoLAN
* $Id: input.c,v 1.269 2003/11/30 16:00:24 fenrir Exp $ * $Id: input.c,v 1.270 2003/12/02 12:57:35 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#include "vlc_interface.h" #include "vlc_interface.h"
#include "codecs.h" #include "codecs.h"
#include "modules/demux/util/sub.h" #include "../../modules/demux/util/sub.h"
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
...@@ -509,7 +509,7 @@ static int RunThread( input_thread_t *p_input ) ...@@ -509,7 +509,7 @@ static int RunThread( input_thread_t *p_input )
subtitle_Demux( p_input->p_sys->sub[i], i_time ); subtitle_Demux( p_input->p_sys->sub[i], i_time );
} }
i_update_next = mdate() + 150000LL; i_update_next = mdate() + I64C(150000);
} }
} }
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* subtitles.c * subtitles.c
***************************************************************************** *****************************************************************************
* Copyright (C) 2003 VideoLAN * Copyright (C) 2003 VideoLAN
* $Id: subtitles.c,v 1.4 2003/10/11 22:40:05 hartman Exp $ * $Id: subtitles.c,v 1.5 2003/12/02 12:57:36 gbazin Exp $
* *
* Authors: Derk-Jan Hartman <hartman at videolan.org> * Authors: Derk-Jan Hartman <hartman at videolan.org>
* This is adapted code from the GPL'ed MPlayer (http://mplayerhq.hu) * This is adapted code from the GPL'ed MPlayer (http://mplayerhq.hu)
...@@ -32,7 +32,13 @@ ...@@ -32,7 +32,13 @@
#include <vlc/input.h> #include <vlc/input.h>
#include "ninput.h" #include "ninput.h"
#include <dirent.h>
#ifdef HAVE_DIRENT_H
# include <dirent.h>
#else
# include "../extras/dirent.h"
#endif
#include <ctype.h> #include <ctype.h>
/** /**
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* win32_specific.c: Win32 specific features * win32_specific.c: Win32 specific features
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: win32_specific.c,v 1.26 2003/10/03 13:35:56 sam Exp $ * $Id: win32_specific.c,v 1.27 2003/12/02 12:57:36 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* Gildas Bazin <gbazin@netcourrier.com> * Gildas Bazin <gbazin@netcourrier.com>
...@@ -32,6 +32,7 @@ ...@@ -32,6 +32,7 @@
#endif #endif
#if !defined( UNDER_CE ) #if !defined( UNDER_CE )
# include <io.h>
# include <fcntl.h> # include <fcntl.h>
# include <winsock2.h> # include <winsock2.h>
#endif #endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* playlist.c : Playlist management functions * playlist.c : Playlist management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: playlist.c,v 1.66 2003/11/29 11:12:46 fenrir Exp $ * $Id: playlist.c,v 1.67 2003/12/02 12:57:36 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -249,7 +249,7 @@ static void ObjectGarbageCollector( playlist_t *p_playlist, ...@@ -249,7 +249,7 @@ static void ObjectGarbageCollector( playlist_t *p_playlist,
if( *pi_obj_destroyed_date == 0 ) if( *pi_obj_destroyed_date == 0 )
{ {
/* give a little time */ /* give a little time */
*pi_obj_destroyed_date = mdate() + 300000LL; *pi_obj_destroyed_date = mdate() + I64C(300000);
} }
else else
{ {
......
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