]> git.sesse.net Git - vlc/commitdiff
* Fixed some win32 64-bit issues.
authorJon Lech Johansen <jlj@videolan.org>
Thu, 8 Nov 2001 01:48:09 +0000 (01:48 +0000)
committerJon Lech Johansen <jlj@videolan.org>
Thu, 8 Nov 2001 01:48:09 +0000 (01:48 +0000)
include/common.h
include/modules.h

index 30e1ce30e83dd385a3b6fedef640495a67f2de3d..ee74d12367d41b5cc042729c39854cfd32b059bb 100644 (file)
@@ -3,7 +3,7 @@
  * Collection of useful common types and macros definitions
  *****************************************************************************
  * Copyright (C) 1998, 1999, 2000 VideoLAN
- * $Id: common.h,v 1.45 2001/11/07 22:58:13 jlj Exp $
+ * $Id: common.h,v 1.46 2001/11/08 01:48:09 jlj Exp $
  *
  * Authors: Samuel Hocevar <sam@via.ecp.fr>
  *          Vincent Seguin <seguin@via.ecp.fr>
@@ -226,12 +226,14 @@ struct pgrm_descriptor_s;
 #   define S_ISCHR(m)      (0)
 #   define S_ISFIFO(m)     (((m)&_S_IFMT) == _S_IFIFO)
 #   define S_ISREG(m)      (((m)&_S_IFMT) == _S_IFREG)
-#   define I64C(x)         x
+#   define I64C(x)         x##i64
 #else
 #   define I64C(x)         x##LL
 #endif
 
 #if defined( WIN32 )
+#   define off_t __int64
+#   define stat _stati64
 #   ifndef snprintf
 #       define snprintf _snprintf  /* snprintf not defined in mingw32 (bug?) */
 #   endif
index fb29c6eba030ffe7c58fc35799f94be561451e06..9acf2e249178ca6a27fd51f74bd29ef21f5fa177 100644 (file)
@@ -2,7 +2,7 @@
  * modules.h : Module management functions.
  *****************************************************************************
  * Copyright (C) 2001 VideoLAN
- * $Id: modules.h,v 1.29 2001/09/05 16:07:49 massiot Exp $
+ * $Id: modules.h,v 1.30 2001/11/08 01:48:09 jlj Exp $
  *
  * Authors: Samuel Hocevar <sam@zoy.org>
  *
  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA  02111, USA.
  *****************************************************************************/
 
-#ifdef WIN32
-#include <sys/types.h>                                              /* off_t */
-#endif
-
 /*****************************************************************************
  * module_bank_t, p_module_bank (global variable)
  *****************************************************************************