Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/moses-smt/mosesdecoder.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/util
diff options
context:
space:
mode:
authorKenneth Heafield <github@kheafield.com>2013-01-07 21:38:04 +0400
committerKenneth Heafield <github@kheafield.com>2013-01-07 21:38:04 +0400
commit366ca8afff15652da2966dded9e78690f67f9198 (patch)
treeb40d725fbe785c9a6e06735b0a6c35cbc510c861 /util
parent506cb8e9d17a2e0830e82923a43ff23d93053f97 (diff)
Remove if that doesn't do anything, define _FILE_OFFSET_BITS 64
Diffstat (limited to 'util')
-rw-r--r--util/file.cc3
1 files changed, 1 insertions, 2 deletions
diff --git a/util/file.cc b/util/file.cc
index bbf374c9a..cc4aad024 100644
--- a/util/file.cc
+++ b/util/file.cc
@@ -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