mingwrt file64 diff


diff -ur mingwrt-3.18-mingw32.orig/include/io.h mingwrt-3.18-mingw32/include/io.h --- mingwrt-3.18-mingw32.orig/include/io.h 2010-03-07 04:28:36 +0100 +++ mingwrt-3.18-mingw32/include/io.h 2010-03-22 02:09:26 +0100 @@ -484,6 +484,10 @@ #endif /* Not _NO_OLDNAMES */ +#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 +#define lseek _lseeki64 +#endif + #ifdef __cplusplus } #endif diff -ur mingwrt-3.18-mingw32.orig/include/sys/stat.h mingwrt-3.18-mingw32/include/sys/stat.h --- mingwrt-3.18-mingw32.orig/include/sys/stat.h 2010-03-07 04:28:37 +0100 +++ mingwrt-3.18-mingw32/include/sys/stat.h 2010-03-22 02:09:26 +0100 @@ -270,6 +270,13 @@ #endif /* _WSTAT_DEFIND */ #endif /* __MSVCRT__ */ +#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 +#undef stat +#define stat _stati64 +#define fstat _fstati64 +#define wstat _wstati64 +#endif + #ifdef __cplusplus } #endif diff -ur mingwrt-3.18-mingw32.orig/include/sys/types.h mingwrt-3.18-mingw32/include/sys/types.h --- mingwrt-3.18-mingw32.orig/include/sys/types.h 2010-03-07 04:28:37 +0100 +++ mingwrt-3.18-mingw32/include/sys/types.h 2010-03-22 02:09:26 +0100 @@ -49,7 +49,11 @@ #ifndef _OFF_T_ #define _OFF_T_ +#if defined _FILE_OFFSET_BITS && _FILE_OFFSET_BITS == 64 +typedef long long _off_t; +#else typedef long _off_t; +#endif #ifndef _NO_OLDNAMES typedef _off_t off_t;

Wyszukiwarka

Podobne podstrony:
binutils cvs file64 diff
install update diff
diff
2007 03 What s the Diff Examining the Algorithms of the Diff Utility
xvid vaq 1 2 2 diff
amp diff
honeyd 0 5 win32 diff
honeyd 0 5 win32 diff
gcc bug4625 diff
diff
function array diff assoc
diff 1
function array diff
function array diff

więcej podobnych podstron