Commit f8cad0ac authored by Gildas Bazin's avatar Gildas Bazin

* Fixes for the Win32_msvc build
parent 768eb521
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* ioctl.c: DVD ioctl replacement function * ioctl.c: DVD ioctl replacement function
***************************************************************************** *****************************************************************************
* Copyright (C) 1999-2001 VideoLAN * Copyright (C) 1999-2001 VideoLAN
* $Id: ioctl.c,v 1.20 2002/01/13 18:13:07 gbazin Exp $ * $Id: ioctl.c,v 1.21 2002/04/01 21:54:26 gbazin Exp $
* *
* Authors: Markus Kuespert <ltlBeBoy@beosmail.com> * Authors: Markus Kuespert <ltlBeBoy@beosmail.com>
* Samuel Hocevar <sam@zoy.org> * Samuel Hocevar <sam@zoy.org>
...@@ -1462,7 +1462,9 @@ int ioctl_ReportRPC( int i_fd, int *p_type, int *p_mask, int *p_scheme ) ...@@ -1462,7 +1462,9 @@ int ioctl_ReportRPC( int i_fd, int *p_type, int *p_mask, int *p_scheme )
key->KeyType = DvdGetRpcKey; key->KeyType = DvdGetRpcKey;
key->KeyFlags = 0; key->KeyFlags = 0;
#warning "Fix ReportRPC for WIN32!" #if !defined( _MSC_VER )
# warning "Fix ReportRPC for WIN32!"
#endif
/* The IOCTL_DVD_READ_KEY might be the right IOCTL */ /* The IOCTL_DVD_READ_KEY might be the right IOCTL */
i_ret = DeviceIoControl( (HANDLE) i_fd, IOCTL_DVD_READ_KEY, key, i_ret = DeviceIoControl( (HANDLE) i_fd, IOCTL_DVD_READ_KEY, key,
key->KeyLength, key, key->KeyLength, &tmp, NULL ) ? 0 : -1; key->KeyLength, key, key->KeyLength, &tmp, NULL ) ? 0 : -1;
......
...@@ -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.89 2002/03/25 23:36:57 ipkiss Exp $ * $Id: common.h,v 1.90 2002/04/01 21:54:26 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>
...@@ -287,6 +287,10 @@ struct intf_subscription_s; ...@@ -287,6 +287,10 @@ struct intf_subscription_s;
__r.__l[1] = __bswap_32 (__w.__l[0]); \ __r.__l[1] = __bswap_32 (__w.__l[0]); \
} \ } \
__r.__ll; })) __r.__ll; }))
# else
# define __bswap_64(i) \
(u64)((__bswap_32((i) & 0xffffffff) << 32) | \
__bswap_32(((i) >> 32) & 0xffffffff ))
# endif # endif
#else /* NTOHL_IN_SYS_PARAM_H || WIN32 */ #else /* NTOHL_IN_SYS_PARAM_H || WIN32 */
...@@ -394,11 +398,12 @@ struct intf_subscription_s; ...@@ -394,11 +398,12 @@ struct intf_subscription_s;
# define __inline__ __inline # define __inline__ __inline
# define strncasecmp strnicmp # define strncasecmp strnicmp
# define strcasecmp stricmp # define strcasecmp stricmp
# define S_IFBLK 0x3000 /* Block */
# define S_ISBLK(m) (0) # define S_ISBLK(m) (0)
# define S_ISCHR(m) (0) # define S_ISCHR(m) (0)
# define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO) # define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO)
# define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG) # define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG)
# undef I64C(x) # undef I64C
# define I64C(x) x##i64 # define I64C(x) x##i64
# endif # endif
...@@ -420,7 +425,6 @@ typedef __int64 off_t; ...@@ -420,7 +425,6 @@ typedef __int64 off_t;
# else # else
# define off_t __int64 # define off_t __int64
# endif # endif
# define stat _stati64
# endif # endif
# if defined( __BORLANDC__ ) # if defined( __BORLANDC__ )
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.c : Built-in and plugin modules management functions * modules.c : Built-in and plugin modules management functions
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * Copyright (C) 2001 VideoLAN
* $Id: modules.c,v 1.56 2002/03/01 16:07:00 sam Exp $ * $Id: modules.c,v 1.57 2002/04/01 21:54:26 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>
...@@ -73,7 +73,12 @@ ...@@ -73,7 +73,12 @@
#ifdef HAVE_DYNAMIC_PLUGINS #ifdef HAVE_DYNAMIC_PLUGINS
# include "modules_plugin.h" # include "modules_plugin.h"
#endif #endif
#include "modules_builtin.h"
#if !defined( _MSC_VER )
# include "modules_builtin.h"
#else
# include "modules_builtin_msvc.h"
#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