Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc-2-2
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Redmine
Redmine
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Metrics
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
videolan
vlc-2-2
Commits
171d858e
Commit
171d858e
authored
Mar 03, 2003
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* ALL: another bunch of fixes for the MSVC build.
parent
7211d64e
Changes
5
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
52 additions
and
15 deletions
+52
-15
include/vlc_common.h
include/vlc_common.h
+10
-1
modules/misc/dummy/decoder.c
modules/misc/dummy/decoder.c
+3
-1
msvc/vlc.dsp.in
msvc/vlc.dsp.in
+4
-4
src/misc/modules.c
src/misc/modules.c
+31
-5
toolbox
toolbox
+4
-4
No files found.
include/vlc_common.h
View file @
171d858e
...
@@ -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.5
5 2003/02/28 04:31:24 ipkiss
Exp $
* $Id: vlc_common.h,v 1.5
6 2003/03/03 16:49:14 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>
...
@@ -610,8 +610,17 @@ typedef __int64 off_t;
...
@@ -610,8 +610,17 @@ typedef __int64 off_t;
# define off_t unsigned __int64
# define off_t unsigned __int64
# endif
# endif
# ifdef lseek
# undef lseek
# define lseek _lseeki64
# endif
# ifndef O_NONBLOCK
# ifndef O_NONBLOCK
# define O_NONBLOCK 0
# define O_NONBLOCK 0
# endif
# ifndef alloca
# define alloca _alloca
# endif
# endif
/* These two are not defined in mingw32 (bug?) */
/* These two are not defined in mingw32 (bug?) */
...
...
modules/misc/dummy/decoder.c
View file @
171d858e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* dec_dummy.c: dummy decoder plugin for vlc.
* dec_dummy.c: dummy decoder plugin for vlc.
*****************************************************************************
*****************************************************************************
* Copyright (C) 2002 VideoLAN
* Copyright (C) 2002 VideoLAN
* $Id: decoder.c,v 1.
4 2002/11/18 18:05:13 sam
Exp $
* $Id: decoder.c,v 1.
5 2003/03/03 16:49:14 gbazin
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
*
*
...
@@ -29,6 +29,8 @@
...
@@ -29,6 +29,8 @@
#ifdef HAVE_UNISTD_H
#ifdef HAVE_UNISTD_H
# include <unistd.h>
/* write(), close() */
# include <unistd.h>
/* write(), close() */
#elif defined( WIN32 ) && !defined( UNDER_CE )
# include <io.h>
#endif
#endif
#ifdef HAVE_SYS_TYPES_H
#ifdef HAVE_SYS_TYPES_H
# include <sys/types.h>
/* open() */
# include <sys/types.h>
/* open() */
...
...
msvc/vlc.dsp.in
View file @
171d858e
...
@@ -49,8 +49,8 @@ BSC32=bscmake.exe
...
@@ -49,8 +49,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:
console /machine:I386
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:
windows /machine:I386 /entry:mainCRTStartup
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib netapi32.lib winmm.lib /nologo /subsystem:
console /machine:I386
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib netapi32.lib winmm.lib /nologo /subsystem:
windows /machine:I386 /entry:mainCRTStartup
!ELSEIF "$(CFG)" == "vlc - Win32 Debug"
!ELSEIF "$(CFG)" == "vlc - Win32 Debug"
...
@@ -73,8 +73,8 @@ BSC32=bscmake.exe
...
@@ -73,8 +73,8 @@ BSC32=bscmake.exe
# ADD BASE BSC32 /nologo
# ADD BASE BSC32 /nologo
# ADD BSC32 /nologo
# ADD BSC32 /nologo
LINK32=link.exe
LINK32=link.exe
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:
console /debug /machine:I386 /pdbtype:sept
# ADD BASE LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib /nologo /subsystem:
windows /debug /machine:I386 /pdbtype:sept /entry:mainCRTStartup
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib netapi32.lib winmm.lib /nologo /subsystem:
console /debug /machine:I386 /pdbtype:sept
# ADD LINK32 kernel32.lib user32.lib gdi32.lib winspool.lib comdlg32.lib advapi32.lib shell32.lib ole32.lib oleaut32.lib uuid.lib odbc32.lib odbccp32.lib ws2_32.lib netapi32.lib winmm.lib /nologo /subsystem:
windows /debug /machine:I386 /pdbtype:sept /entry:mainCRTStartup
# SUBTRACT LINK32 /pdb:none
# SUBTRACT LINK32 /pdb:none
!ENDIF
!ENDIF
...
...
src/misc/modules.c
View file @
171d858e
...
@@ -2,7 +2,7 @@
...
@@ -2,7 +2,7 @@
* modules.c : Builtin and plugin modules management functions
* modules.c : Builtin and plugin modules management functions
*****************************************************************************
*****************************************************************************
* Copyright (C) 2001 VideoLAN
* Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.11
4 2003/02/18 22:40:39 ipkiss
Exp $
* $Id: modules.c,v 1.11
5 2003/03/03 16:49:14 gbazin
Exp $
*
*
* Authors: Samuel Hocevar <sam@zoy.org>
* Authors: Samuel Hocevar <sam@zoy.org>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
...
@@ -565,7 +565,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
...
@@ -565,7 +565,7 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
path
[
sizeof
(
path
)
/
sizeof
(
char
*
)
-
2
]
=
config_GetPsz
(
p_this
,
path
[
sizeof
(
path
)
/
sizeof
(
char
*
)
-
2
]
=
config_GetPsz
(
p_this
,
"plugin-path"
);
"plugin-path"
);
#if defined( WIN32 ) && !defined( UNDER_CE )
#if defined( WIN32 ) && !defined( UNDER_CE )
&& !defined( _MSC_VER )
/* If there is no 'plugins' nor 'modules' subdirectory, the user may have
/* If there is no 'plugins' nor 'modules' subdirectory, the user may have
* screwed up the unzipping stage, so we look into '.' instead */
* screwed up the unzipping stage, so we look into '.' instead */
if
(
!
opendir
(
"plugins"
)
&&
!
opendir
(
"modules"
)
if
(
!
opendir
(
"plugins"
)
&&
!
opendir
(
"modules"
)
...
@@ -642,8 +642,12 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
...
@@ -642,8 +642,12 @@ static void AllocateAllPlugins( vlc_object_t *p_this )
static
void
AllocatePluginDir
(
vlc_object_t
*
p_this
,
const
MYCHAR
*
psz_dir
,
static
void
AllocatePluginDir
(
vlc_object_t
*
p_this
,
const
MYCHAR
*
psz_dir
,
int
i_maxdepth
)
int
i_maxdepth
)
{
{
#if defined( UNDER_CE ) || defined( _MSC_VER )
#ifdef UNDER_CE
#ifdef UNDER_CE
MYCHAR
psz_path
[
MAX_PATH
+
256
];
MYCHAR
psz_path
[
MAX_PATH
+
256
];
#else
char
psz_path
[
MAX_PATH
+
256
];
#endif
WIN32_FIND_DATA
finddata
;
WIN32_FIND_DATA
finddata
;
HANDLE
handle
;
HANDLE
handle
;
unsigned
int
rc
;
unsigned
int
rc
;
...
@@ -659,7 +663,7 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
...
@@ -659,7 +663,7 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
return
;
return
;
}
}
#if
def UNDER_CE
#if
defined( UNDER_CE ) || defined( _MSC_VER )
rc
=
GetFileAttributes
(
psz_dir
);
rc
=
GetFileAttributes
(
psz_dir
);
if
(
!
(
rc
&
FILE_ATTRIBUTE_DIRECTORY
)
)
if
(
!
(
rc
&
FILE_ATTRIBUTE_DIRECTORY
)
)
{
{
...
@@ -668,7 +672,11 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
...
@@ -668,7 +672,11 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
}
}
/* Parse all files in the directory */
/* Parse all files in the directory */
#ifdef UNDER_CE
swprintf
(
psz_path
,
L"%s
\\
*.*"
,
psz_dir
);
swprintf
(
psz_path
,
L"%s
\\
*.*"
,
psz_dir
);
#else
sprintf
(
psz_path
,
"%s
\\
*.*"
,
psz_dir
);
#endif
handle
=
FindFirstFile
(
psz_path
,
&
finddata
);
handle
=
FindFirstFile
(
psz_path
,
&
finddata
);
if
(
handle
==
INVALID_HANDLE_VALUE
)
if
(
handle
==
INVALID_HANDLE_VALUE
)
{
{
...
@@ -679,15 +687,33 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
...
@@ -679,15 +687,33 @@ static void AllocatePluginDir( vlc_object_t *p_this, const MYCHAR *psz_dir,
/* Parse the directory and try to load all files it contains. */
/* Parse the directory and try to load all files it contains. */
do
do
{
{
#ifdef UNDER_CE
unsigned
int
i_len
=
wcslen
(
finddata
.
cFileName
);
unsigned
int
i_len
=
wcslen
(
finddata
.
cFileName
);
swprintf
(
psz_path
,
L"%s
\\
%s"
,
psz_dir
,
finddata
.
cFileName
);
swprintf
(
psz_path
,
L"%s
\\
%s"
,
psz_dir
,
finddata
.
cFileName
);
#else
unsigned
int
i_len
=
strlen
(
finddata
.
cFileName
);
/* Skip ".", ".." and anything starting with "." */
if
(
!*
finddata
.
cFileName
||
*
finddata
.
cFileName
==
'.'
)
{
if
(
!
FindNextFile
(
handle
,
&
finddata
)
)
break
;
continue
;
}
sprintf
(
psz_path
,
"%s
\\
%s"
,
psz_dir
,
finddata
.
cFileName
);
#endif
if
(
GetFileAttributes
(
psz_path
)
&
FILE_ATTRIBUTE_DIRECTORY
)
if
(
GetFileAttributes
(
psz_path
)
&
FILE_ATTRIBUTE_DIRECTORY
)
{
{
AllocatePluginDir
(
p_this
,
psz_path
,
i_maxdepth
-
1
);
AllocatePluginDir
(
p_this
,
psz_path
,
i_maxdepth
-
1
);
}
}
else
if
(
i_len
>
strlen
(
LIBEXT
)
)
else
if
(
i_len
>
strlen
(
LIBEXT
)
#ifdef UNDER_CE
)
#else
/* We only load files ending with LIBEXT */
&&
!
strncasecmp
(
psz_path
+
strlen
(
psz_path
)
-
strlen
(
LIBEXT
),
LIBEXT
,
strlen
(
LIBEXT
)
)
)
#endif
{
{
AllocatePluginFile
(
p_this
,
psz_path
);
AllocatePluginFile
(
p_this
,
psz_path
);
}
}
...
...
toolbox
View file @
171d858e
#! /bin/sh
#! /bin/sh
## toolbox for the VLC media player
## toolbox for the VLC media player
## $Id: toolbox,v 1.1
0 2003/03/01 19:25:13
gbazin Exp $
## $Id: toolbox,v 1.1
1 2003/03/03 16:49:14
gbazin Exp $
##
##
## Authors: Samuel Hocevar <sam@zoy.org>
## Authors: Samuel Hocevar <sam@zoy.org>
...
@@ -118,7 +118,7 @@ then
...
@@ -118,7 +118,7 @@ then
cat
>>
${
target
}
<<
EOF
cat
>>
${
target
}
<<
EOF
# Begin Source File
${
M
}
# Begin Source File
${
M
}
SOURCE="..
\\
`echo
$file
| sed -e 's%/%
\\\\
%g'`"
${
M
}
SOURCE="..
\\
`echo
$file
| sed -e 's%/%
\\\\
%g'`"
${
M
}
# ADD CPP /D "__VLC__" /D PLUGIN_PATH=
\\
"
plugins
\\
" /D DATA_PATH=
\\
"share
\\
"
${
M
}
# ADD CPP /D "__VLC__" /D PLUGIN_PATH=
\\
"
.
\\
" /D DATA_PATH=
\\
"share
\\
"
${
M
}
# End Source File
${
M
}
# End Source File
${
M
}
EOF
EOF
done
done
...
@@ -134,7 +134,7 @@ EOF
...
@@ -134,7 +134,7 @@ EOF
cat
>>
${
target
}
<<
EOF
cat
>>
${
target
}
<<
EOF
# Begin Source File
${
M
}
# Begin Source File
${
M
}
SOURCE="..
\\
`echo
$file
| sed -e 's%/%
\\\\
%g'`"
${
M
}
SOURCE="..
\\
`echo
$file
| sed -e 's%/%
\\\\
%g'`"
${
M
}
# ADD CPP /D "__VLC__" /D PLUGIN_PATH=
\\
"
plugins
\\
" /D DATA_PATH=
\\
"share
\\
"
${
M
}
# ADD CPP /D "__VLC__" /D PLUGIN_PATH=
\\
"
.
\\
" /D DATA_PATH=
\\
"share
\\
"
${
M
}
!IF "
\$
(CFG)" == "libvlc - Win32 (WCE MIPS) Release"
${
M
}
!IF "
\$
(CFG)" == "libvlc - Win32 (WCE MIPS) Release"
${
M
}
# PROP Output_Dir "MIPSRel
\\
${
subdir
}
"
${
M
}
# PROP Output_Dir "MIPSRel
\\
${
subdir
}
"
${
M
}
# PROP Intermediate_Dir "MIPSRel
\\
${
subdir
}
"
${
M
}
# PROP Intermediate_Dir "MIPSRel
\\
${
subdir
}
"
${
M
}
...
@@ -172,7 +172,7 @@ EOF
...
@@ -172,7 +172,7 @@ EOF
cat
>>
${
target
}
<<
EOF
cat
>>
${
target
}
<<
EOF
# Begin Source File
${
M
}
# Begin Source File
${
M
}
SOURCE="..
\\
`echo
$file
| sed -e 's%/%
\\\\
%g'`"
${
M
}
SOURCE="..
\\
`echo
$file
| sed -e 's%/%
\\\\
%g'`"
${
M
}
# ADD CPP /D "__VLC__" /D PLUGIN_PATH=
\\
"
plugins
\\
" /D DATA_PATH=
\\
"share
\\
"
${
M
}
# ADD CPP /D "__VLC__" /D PLUGIN_PATH=
\\
"
.
\\
" /D DATA_PATH=
\\
"share
\\
"
${
M
}
!IF "
\$
(CFG)" == "libvlc - Win32 Release"
${
M
}
!IF "
\$
(CFG)" == "libvlc - Win32 Release"
${
M
}
# PROP Output_Dir "Release
\\
${
subdir
}
"
${
M
}
# PROP Output_Dir "Release
\\
${
subdir
}
"
${
M
}
# PROP Intermediate_Dir "Release
\\
${
subdir
}
"
${
M
}
# PROP Intermediate_Dir "Release
\\
${
subdir
}
"
${
M
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment