* ioctl.c: DVD ioctl replacement function
*****************************************************************************
* 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>
* Samuel Hocevar <sam@zoy.org>
key->KeyType = DvdGetRpcKey;
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 */
i_ret = DeviceIoControl( (HANDLE) i_fd, IOCTL_DVD_READ_KEY, key,
key->KeyLength, key, key->KeyLength, &tmp, NULL ) ? 0 : -1;
* Collection of useful common types and macros definitions
*****************************************************************************
* 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>
* Vincent Seguin <seguin@via.ecp.fr>
__r.__l[1] = __bswap_32 (__w.__l[0]); \
} \
__r.__ll; }))
+# else
+# define __bswap_64(i) \
+ (u64)((__bswap_32((i) & 0xffffffff) << 32) | \
+ __bswap_32(((i) >> 32) & 0xffffffff ))
# endif
#else /* NTOHL_IN_SYS_PARAM_H || WIN32 */
# define __inline__ __inline
# define strncasecmp strnicmp
# define strcasecmp stricmp
+# define S_IFBLK 0x3000 /* Block */
# define S_ISBLK(m) (0)
# define S_ISCHR(m) (0)
# define S_ISFIFO(m) (((m)&_S_IFMT) == _S_IFIFO)
# define S_ISREG(m) (((m)&_S_IFMT) == _S_IFREG)
-# undef I64C(x)
+# undef I64C
# define I64C(x) x##i64
# endif
# else
# define off_t __int64
# endif
-# define stat _stati64
# endif
# if defined( __BORLANDC__ )
* modules.c : Built-in and plugin modules management functions
*****************************************************************************
* 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>
* Ethan C. Baldridge <BaldridgeE@cadmus.com>
#ifdef HAVE_DYNAMIC_PLUGINS
# include "modules_plugin.h"
#endif
-#include "modules_builtin.h"
+
+#if !defined( _MSC_VER )
+# include "modules_builtin.h"
+#else
+# include "modules_builtin_msvc.h"
+#endif
/*****************************************************************************
* Local prototypes