mirror of
https://github.com/moses-smt/mosesdecoder.git
synced 2024-08-17 07:20:48 +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 _FILE_OFFSET_BITS 64
|
||||
|
||||
#include "util/file.hh"
|
||||
|
||||
@ -143,8 +144,6 @@ void InternalSeek(int fd, int64_t off, int whence) {
|
||||
UTIL_THROW_IF(
|
||||
#if defined(_WIN32) || defined(_WIN64)
|
||||
(__int64)-1 == _lseeki64(fd, off, whence),
|
||||
#elif defined(__APPLE__) && defined(__MACH__)
|
||||
(off_t)-1 == lseek(fd, off, whence),
|
||||
#else
|
||||
(off_t)-1 == lseek(fd, off, whence),
|
||||
#endif
|
||||
|
Loading…
Reference in New Issue
Block a user