Commit c708c8fe authored by Gildas Bazin's avatar Gildas Bazin

* modules/misc/dummy/input.c, modules/access/file.c, include/vlc_common.h:
   msvc compilation fixes.
parent fd08bdbe
...@@ -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: vlc_common.h,v 1.61 2003/04/14 22:22:32 massiot Exp $ * $Id: vlc_common.h,v 1.62 2003/04/16 11:47:08 gbazin 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>
...@@ -531,7 +531,9 @@ static inline uint64_t U64_AT( void * _p ) ...@@ -531,7 +531,9 @@ static inline uint64_t U64_AT( void * _p )
#ifndef HAVE_STRCASECMP #ifndef HAVE_STRCASECMP
# ifdef HAVE_STRICMP # ifdef HAVE_STRICMP
# define strcasecmp stricmp # define strcasecmp stricmp
# define vlc_strcasecmp NULL # if !defined(__PLUGIN__)
# define vlc_strcasecmp NULL
# endif
# elif !defined(__PLUGIN__) # elif !defined(__PLUGIN__)
# define strcasecmp vlc_strcasecmp # define strcasecmp vlc_strcasecmp
VLC_EXPORT( int, vlc_strcasecmp, ( const char *s1, const char *s2 ) ); VLC_EXPORT( int, vlc_strcasecmp, ( const char *s1, const char *s2 ) );
...@@ -543,7 +545,9 @@ static inline uint64_t U64_AT( void * _p ) ...@@ -543,7 +545,9 @@ static inline uint64_t U64_AT( void * _p )
#ifndef HAVE_STRNCASECMP #ifndef HAVE_STRNCASECMP
# ifdef HAVE_STRNICMP # ifdef HAVE_STRNICMP
# define strncasecmp strnicmp # define strncasecmp strnicmp
# define vlc_strncasecmp NULL # if !defined(__PLUGIN__)
# define vlc_strncasecmp NULL
# endif
# elif !defined(__PLUGIN__) # elif !defined(__PLUGIN__)
# define strncasecmp vlc_strncasecmp # define strncasecmp vlc_strncasecmp
VLC_EXPORT( int, vlc_strncasecmp, ( const char *s1, const char *s2, size_t n ) ); VLC_EXPORT( int, vlc_strncasecmp, ( const char *s1, const char *s2, size_t n ) );
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* file.c: file input (file: access plug-in) * file.c: file input (file: access plug-in)
***************************************************************************** *****************************************************************************
* Copyright (C) 2001, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: file.c,v 1.17 2003/04/02 23:16:30 massiot Exp $ * $Id: file.c,v 1.18 2003/04/16 11:47:08 gbazin Exp $
* *
* Authors: Christophe Massiot <massiot@via.ecp.fr> * Authors: Christophe Massiot <massiot@via.ecp.fr>
* *
...@@ -48,12 +48,6 @@ ...@@ -48,12 +48,6 @@
# include <io.h> # include <io.h>
#endif #endif
#if defined( WIN32 ) && !defined( UNDER_CE )
# ifdef lseek
# undef lseek
# endif
# define lseek _lseeki64
#endif
/***************************************************************************** /*****************************************************************************
* Exported prototypes * Exported prototypes
*****************************************************************************/ *****************************************************************************/
...@@ -400,7 +394,11 @@ static void Seek( input_thread_t * p_input, off_t i_pos ) ...@@ -400,7 +394,11 @@ static void Seek( input_thread_t * p_input, off_t i_pos )
#define S p_input->stream #define S p_input->stream
input_socket_t * p_access_data = (input_socket_t *)p_input->p_access_data; input_socket_t * p_access_data = (input_socket_t *)p_input->p_access_data;
#if defined( WIN32 ) && !defined( UNDER_CE )
_lseeki64( p_access_data->i_handle, i_pos, SEEK_SET );
#else
lseek( p_access_data->i_handle, i_pos, SEEK_SET ); lseek( p_access_data->i_handle, i_pos, SEEK_SET );
#endif
vlc_mutex_lock( &S.stream_lock ); vlc_mutex_lock( &S.stream_lock );
S.p_selected_area->i_tell = i_pos; S.p_selected_area->i_tell = i_pos;
......
...@@ -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, 2002 VideoLAN * Copyright (C) 2001, 2002 VideoLAN
* $Id: input.c,v 1.2 2002/11/18 18:05:13 sam Exp $ * $Id: input.c,v 1.3 2003/04/16 11:47:08 gbazin Exp $
* *
* Authors: Samuel Hocevar <sam@zoy.org> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -31,10 +31,6 @@ ...@@ -31,10 +31,6 @@
#include <vlc/intf.h> #include <vlc/intf.h>
#include <vlc/input.h> #include <vlc/input.h>
#ifndef HAVE_STRNCASECMP
# define strncasecmp(a,b,c) strcmp(a,b)
#endif
/***************************************************************************** /*****************************************************************************
* Local prototypes * Local prototypes
*****************************************************************************/ *****************************************************************************/
......
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