mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-09-11 19:27:11 +03:00
Remove if that doesn't do anything, define _FILE_OFFSET_BITS 64
This commit is contained in:
parent
506cb8e9d1
commit
366ca8afff
@ -1,4 +1,5 @@
|
|||||||
#define _LARGEFILE64_SOURCE
|
#define _LARGEFILE64_SOURCE
|
||||||
|
#define _FILE_OFFSET_BITS 64
|
||||||
|
|
||||||
#include "util/file.hh"
|
#include "util/file.hh"
|
||||||
|
|
||||||
@ -143,8 +144,6 @@ void InternalSeek(int fd, int64_t off, int whence) {
|
|||||||
UTIL_THROW_IF(
|
UTIL_THROW_IF(
|
||||||
#if defined(_WIN32) || defined(_WIN64)
|
#if defined(_WIN32) || defined(_WIN64)
|
||||||
(__int64)-1 == _lseeki64(fd, off, whence),
|
(__int64)-1 == _lseeki64(fd, off, whence),
|
||||||
#elif defined(__APPLE__) && defined(__MACH__)
|
|
||||||
(off_t)-1 == lseek(fd, off, whence),
|
|
||||||
#else
|
#else
|
||||||
(off_t)-1 == lseek(fd, off, whence),
|
(off_t)-1 == lseek(fd, off, whence),
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user