Commit 3129e03d authored by Jon Lech Johansen's avatar Jon Lech Johansen

  * Fixed some win32 64-bit issues.
parent fa2a8210
...@@ -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.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> * Authors: Samuel Hocevar <sam@via.ecp.fr>
* Vincent Seguin <seguin@via.ecp.fr> * Vincent Seguin <seguin@via.ecp.fr>
...@@ -226,12 +226,14 @@ struct pgrm_descriptor_s; ...@@ -226,12 +226,14 @@ struct pgrm_descriptor_s;
# 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)
# define I64C(x) x # define I64C(x) x##i64
#else #else
# define I64C(x) x##LL # define I64C(x) x##LL
#endif #endif
#if defined( WIN32 ) #if defined( WIN32 )
# define off_t __int64
# define stat _stati64
# ifndef snprintf # ifndef snprintf
# define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */ # define snprintf _snprintf /* snprintf not defined in mingw32 (bug?) */
# endif # endif
......
...@@ -2,7 +2,7 @@ ...@@ -2,7 +2,7 @@
* modules.h : Module management functions. * modules.h : Module management functions.
***************************************************************************** *****************************************************************************
* Copyright (C) 2001 VideoLAN * 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> * Authors: Samuel Hocevar <sam@zoy.org>
* *
...@@ -21,10 +21,6 @@ ...@@ -21,10 +21,6 @@
* Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111, USA. * 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) * module_bank_t, p_module_bank (global variable)
***************************************************************************** *****************************************************************************
......
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