Commit 27de7cdb authored by Gildas Bazin's avatar Gildas Bazin

* include/vlc_common.h: why on earth was off_t not typedefed to int64 anymore under _MSC_VER ?

parent 79654985
...@@ -994,8 +994,8 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw ) ...@@ -994,8 +994,8 @@ static inline void _SetQWBE( uint8_t *p, uint64_t i_qw )
/* several type definitions */ /* several type definitions */
# if defined( __MINGW32__ ) # if defined( __MINGW32__ )
# if !defined( _OFF_T_ ) # if !defined( _OFF_T_ )
typedef long long _off_t; typedef long long _off_t;
typedef _off_t off_t; typedef _off_t off_t;
# define _OFF_T_ # define _OFF_T_
# else # else
# ifdef off_t # ifdef off_t
...@@ -1005,17 +1005,15 @@ typedef _off_t off_t; ...@@ -1005,17 +1005,15 @@ typedef _off_t off_t;
# endif # endif
# endif # endif
/* # if defined( _MSC_VER ) && !defined( __WXMSW__ )
# if (defined( _MSC_VER ) && (!defined(__WXMSW__)))
# if !defined( _OFF_T_DEFINED ) # if !defined( _OFF_T_DEFINED )
typedef __int64 off_t; typedef __int64 off_t;
# define _OFF_T_DEFINED # define _OFF_T_DEFINED
# else # else
/* for wx compatibility typedef long off_t; */
# define off_t __int64 # define off_t __int64
// for wx compatibility typedef long off_t;
# endif # endif
# endif # endif
*/
# if defined( __BORLANDC__ ) # if defined( __BORLANDC__ )
# undef off_t # undef off_t
......
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