Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
V
vlc
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
Commits
f84729fc
Commit
f84729fc
authored
Jan 13, 2002
by
Gildas Bazin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* A few fixes for the Win32 build.
parent
0cbc9445
Changes
5
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
422 additions
and
352 deletions
+422
-352
configure
configure
+405
-337
configure.in
configure.in
+5
-2
extras/libdvdcss/ioctl.c
extras/libdvdcss/ioctl.c
+2
-3
include/common.h
include/common.h
+8
-9
src/misc/netutils.c
src/misc/netutils.c
+2
-1
No files found.
configure
View file @
f84729fc
This diff is collapsed.
Click to expand it.
configure.in
View file @
f84729fc
...
...
@@ -30,6 +30,9 @@ AC_PROG_MAKE_SET
AC_PROG_CC
AC_PROG_CPP
dnl Find the right ranlib, even when cross-compiling
AC_CHECK_TOOL(RANLIB, ranlib, :)
dnl Gettext stuff
ALL_LINGUAS="de fr ru"
...
...
@@ -1038,13 +1041,13 @@ then
then
AC_CHECK_HEADERS(directx.h,
[ PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="-lgdi32
-ldxguid
" ])
LIB_DIRECTX="-lgdi32" ])
else
AC_MSG_CHECKING(for directX headers in ${withval})
if test -f ${withval}/include/directx.h
then
PLUGINS="${PLUGINS} directx"
LIB_DIRECTX="-L${withval}/lib -lgdi32
-ldxguid
"
LIB_DIRECTX="-L${withval}/lib -lgdi32"
INCLUDE="${INCLUDE} -I${withval}/include"
AC_MSG_RESULT(yes)
else
...
...
extras/libdvdcss/ioctl.c
View file @
f84729fc
...
...
@@ -2,7 +2,7 @@
* ioctl.c: DVD ioctl replacement function
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: ioctl.c,v 1.
19 2001/12/30 07:09:54 sam
Exp $
* $Id: ioctl.c,v 1.
20 2002/01/13 18:13:07 gbazin
Exp $
*
* Authors: Markus Kuespert <ltlBeBoy@beosmail.com>
* Samuel Hocevar <sam@zoy.org>
...
...
@@ -531,8 +531,7 @@ int ioctl_ReadTitleKey( int i_fd, int *pi_agid, int i_pos, u8 *p_key )
key
->
SessionId
=
*
pi_agid
;
key
->
KeyType
=
DvdTitleKey
;
key
->
KeyFlags
=
0
;
#warning "Fix ReadTitleKey for WIN32!"
//key->Parameters.TitleOffset = i_pos; // is this ok?
key
->
Parameters
.
TitleOffset
.
QuadPart
=
i_pos
;
i_ret
=
DeviceIoControl
(
(
HANDLE
)
i_fd
,
IOCTL_DVD_READ_KEY
,
key
,
key
->
KeyLength
,
key
,
key
->
KeyLength
,
&
tmp
,
NULL
)
?
0
:
-
1
;
...
...
include/common.h
View file @
f84729fc
...
...
@@ -3,7 +3,7 @@
* Collection of useful common types and macros definitions
*****************************************************************************
* Copyright (C) 1998, 1999, 2000 VideoLAN
* $Id: common.h,v 1.6
7 2002/01/09 02:01:14 sam
Exp $
* $Id: common.h,v 1.6
8 2002/01/13 18:13:07 gbazin
Exp $
*
* Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr>
...
...
@@ -286,6 +286,7 @@ struct probedata_s;
* byte orders other than little and big endians are not supported, but only
* the VAX seems to have such exotic properties - note that these 'functions'
* needs <netinet/in.h> or the local equivalent. */
#if !defined( WIN32 )
#if WORDS_BIGENDIAN
# define hton16 htons
# define hton32 htonl
...
...
@@ -306,6 +307,7 @@ struct probedata_s;
# define ntoh32 ntohl
# define ntoh64 hton64
#endif
#endif
/* !defined( WIN32 ) */
/* Macros with automatic casts */
#define U64_AT(p) ( ntoh64 ( *( (u64 *)(p) ) ) )
...
...
@@ -343,13 +345,6 @@ struct probedata_s;
* ourselves. ( several plugins use them and it is too much hassle to link
* winsock with each of them ;-)
*/
# undef ntoh32(x)
# undef ntoh16(x)
# undef ntoh64(x)
# undef hton32(x)
# undef hton16(x)
# undef hton64(x)
# ifdef WORDS_BIGENDIAN
# define ntoh32(x) (x)
# define ntoh16(x) (x)
...
...
@@ -363,7 +358,7 @@ struct probedata_s;
# define ntoh64(x) __bswap_32 (x)
# define hton32(x) __bswap_32 (x)
# define hton16(x) __bswap_16 (x)
# define hton64(x) __bswap_
32
(x)
# define hton64(x) __bswap_
64
(x)
# endif
/* win32, cl and icl support */
...
...
@@ -401,6 +396,10 @@ typedef __int64 off_t;
# define stat _stati64
# endif
# ifndef O_NONBLOCK
# define O_NONBLOCK 0
# endif
# ifndef snprintf
# define snprintf _snprintf
/* snprintf not defined in mingw32 (bug?) */
# endif
...
...
src/misc/netutils.c
View file @
f84729fc
...
...
@@ -2,7 +2,7 @@
* netutils.c: various network functions
*****************************************************************************
* Copyright (C) 1999-2001 VideoLAN
* $Id: netutils.c,v 1.5
4 2001/12/30 07:09:56 sam
Exp $
* $Id: netutils.c,v 1.5
5 2002/01/13 18:13:07 gbazin
Exp $
*
* Authors: Vincent Seguin <seguin@via.ecp.fr>
* Benoit Steiner <benny@via.ecp.fr>
...
...
@@ -67,6 +67,7 @@
#if defined( WIN32 )
/* tools to get the MAC adress from */
#include <windows.h>
/* the interface under Windows */
#include <stdio.h>
#include <nb30.h>
#endif
#ifdef HAVE_NET_IF_H
...
...
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