winlin

always use 64bits for lseek

@@ -52,6 +52,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. @@ -52,6 +52,12 @@ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
52 * build failed. 52 * build failed.
53 */ 53 */
54 54
  55 +// for 32bit os, 2G big file limit for unistd io,
  56 +// ie. read/write/lseek to use 64bits size for huge file.
  57 +#ifndef _FILE_OFFSET_BITS
  58 + #define _FILE_OFFSET_BITS 64
  59 +#endif
  60 +
55 // for int64_t print using PRId64 format. 61 // for int64_t print using PRId64 format.
56 #ifndef __STDC_FORMAT_MACROS 62 #ifndef __STDC_FORMAT_MACROS
57 #define __STDC_FORMAT_MACROS 63 #define __STDC_FORMAT_MACROS